aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/numbers.go
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/abi/numbers.go')
-rw-r--r--accounts/abi/numbers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/numbers.go b/accounts/abi/numbers.go
index 36fb6705e..10afa6511 100644
--- a/accounts/abi/numbers.go
+++ b/accounts/abi/numbers.go
@@ -59,7 +59,7 @@ var (
// U256 converts a big Int into a 256bit EVM number.
func U256(n *big.Int) []byte {
- return common.LeftPadBytes(math.U256(n).Bytes(), 32)
+ return math.PaddedBigBytes(math.U256(n), 32)
}
// packNum packs the given number (using the reflect value) and will cast it to appropriate number representation