Commit d7e396a9 authored by obscuren's avatar obscuren

l <=> r

parent 00d3935a
......@@ -119,7 +119,6 @@ func FormatData(data string) []byte {
d := new(big.Int)
if data[0:1] == "\"" && data[len(data)-1:] == "\"" {
return RightPadBytes([]byte(data), 32)
//d.SetBytes([]byte(data[1 : len(data)-1]))
} else if len(data) > 1 && data[:2] == "0x" {
d.SetBytes(Hex2Bytes(data[2:]))
} else {
......@@ -129,7 +128,7 @@ func FormatData(data string) []byte {
return BigToBytes(d, 256)
}
func LeftPadBytes(slice []byte, l int) []byte {
func RightPadBytes(slice []byte, l int) []byte {
if l <= len(slice) {
return slice
}
......@@ -140,7 +139,7 @@ func LeftPadBytes(slice []byte, l int) []byte {
return padded
}
func RightPadBytes(slice []byte, l int) []byte {
func LeftPadBytes(slice []byte, l int) []byte {
if l <= len(slice) {
return slice
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment