aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/packing.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2016-04-21 03:30:02 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2016-04-28 18:41:47 +0800
commit4880868c88b8d82cda8ea615bf82548667a95da2 (patch)
tree973857d454e2f70b100f190ad40bb3c32f1cdd0b /accounts/abi/packing.go
parentc3d5250473794e5b7732e0d06941a6736cff2fca (diff)
downloadgo-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.tar
go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.tar.gz
go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.tar.bz2
go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.tar.lz
go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.tar.xz
go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.tar.zst
go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.zip
accounts/abi: fixed string and fixed size bytes packing
Diffstat (limited to 'accounts/abi/packing.go')
-rw-r--r--accounts/abi/packing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/packing.go b/accounts/abi/packing.go
index 2a16d3be1..c765dfdf3 100644
--- a/accounts/abi/packing.go
+++ b/accounts/abi/packing.go
@@ -59,7 +59,7 @@ func packElement(t Type, reflectValue reflect.Value) []byte {
reflectValue = mustArrayToByteSlice(reflectValue)
}
- return common.LeftPadBytes(reflectValue.Bytes(), 32)
+ return common.RightPadBytes(reflectValue.Bytes(), 32)
}
panic("abi: fatal error")
}