aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/bytes.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-02 06:06:21 +0800
committerobscuren <geffobscura@gmail.com>2014-07-02 06:06:21 +0800
commit1954ef47e67762f0308544e3a17976e4c3927e32 (patch)
tree6c67c4ca85b9b4020a4afe8028f4aa1978ef6c40 /ethutil/bytes.go
parentfd1d0bbde7e76b3376a3a932930bc099f223d8ff (diff)
downloadgo-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.tar.gz
go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.tar.zst
go-tangerine-1954ef47e67762f0308544e3a17976e4c3927e32.zip
Suicide is deferred to update
Diffstat (limited to 'ethutil/bytes.go')
-rw-r--r--ethutil/bytes.go4
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
}