aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
Diffstat (limited to 'ethutil')
-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
}