diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-18 08:34:06 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-18 08:34:06 +0800 |
commit | d7eca7bcc12e940f0aa80d45e6e802ba68143b5c (patch) | |
tree | 0ca5ae2019fccbb15b326d8cf4cad365a205d4eb /ethutil/encoding.go | |
parent | 68028f492f092f0546c2c084c1694ee6bf43b34e (diff) | |
download | dexon-d7eca7bcc12e940f0aa80d45e6e802ba68143b5c.tar.gz dexon-d7eca7bcc12e940f0aa80d45e6e802ba68143b5c.tar.zst dexon-d7eca7bcc12e940f0aa80d45e6e802ba68143b5c.zip |
Rlp update
Diffstat (limited to 'ethutil/encoding.go')
-rw-r--r-- | ethutil/encoding.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ethutil/encoding.go b/ethutil/encoding.go index 207548c93..1f661947a 100644 --- a/ethutil/encoding.go +++ b/ethutil/encoding.go @@ -3,7 +3,6 @@ package ethutil import ( "bytes" "encoding/hex" - _ "fmt" "strings" ) @@ -36,7 +35,7 @@ func CompactEncode(hexSlice []int) string { func CompactDecode(str string) []int { base := CompactHexDecode(str) base = base[:len(base)-1] - if base[0] >= 2 { // && base[len(base)-1] != 16 { + if base[0] >= 2 { base = append(base, 16) } if base[0]%2 == 1 { |