diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-02 06:06:21 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-02 06:06:21 +0800 |
commit | 1954ef47e67762f0308544e3a17976e4c3927e32 (patch) | |
tree | 6c67c4ca85b9b4020a4afe8028f4aa1978ef6c40 /ethutil | |
parent | fd1d0bbde7e76b3376a3a932930bc099f223d8ff (diff) | |
download | go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.tar go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.tar.gz go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.tar.bz2 go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.tar.lz go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.tar.xz go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.tar.zst go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.zip |
Suicide is deferred to update
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/bytes.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethutil/bytes.go b/ethutil/bytes.go index ad60e62fd..d68a69433 100644 --- a/ethutil/bytes.go +++ b/ethutil/bytes.go @@ -129,7 +129,7 @@ func FormatData(data string) []byte { } func RightPadBytes(slice []byte, l int) []byte { - if l <= len(slice) { + if l < len(slice) { return slice } @@ -140,7 +140,7 @@ func RightPadBytes(slice []byte, l int) []byte { } func LeftPadBytes(slice []byte, l int) []byte { - if l <= len(slice) { + if l < len(slice) { return slice } |