aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/abi.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/abi.go
parentc3d5250473794e5b7732e0d06941a6736cff2fca (diff)
downloaddexon-4880868c88b8d82cda8ea615bf82548667a95da2.tar
dexon-4880868c88b8d82cda8ea615bf82548667a95da2.tar.gz
dexon-4880868c88b8d82cda8ea615bf82548667a95da2.tar.bz2
dexon-4880868c88b8d82cda8ea615bf82548667a95da2.tar.lz
dexon-4880868c88b8d82cda8ea615bf82548667a95da2.tar.xz
dexon-4880868c88b8d82cda8ea615bf82548667a95da2.tar.zst
dexon-4880868c88b8d82cda8ea615bf82548667a95da2.zip
accounts/abi: fixed string and fixed size bytes packing
Diffstat (limited to 'accounts/abi/abi.go')
-rw-r--r--accounts/abi/abi.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go
index cce89de1b..32df6f19d 100644
--- a/accounts/abi/abi.go
+++ b/accounts/abi/abi.go
@@ -197,13 +197,13 @@ func toGoType(i int, t Argument, output []byte) (interface{}, error) {
case reflect.Uint64:
return uint64(bigNum.Uint64()), nil
case reflect.Int8:
- return uint8(bigNum.Int64()), nil
+ return int8(bigNum.Int64()), nil
case reflect.Int16:
- return uint16(bigNum.Int64()), nil
+ return int16(bigNum.Int64()), nil
case reflect.Int32:
- return uint32(bigNum.Int64()), nil
+ return int32(bigNum.Int64()), nil
case reflect.Int64:
- return uint64(bigNum.Int64()), nil
+ return int64(bigNum.Int64()), nil
case reflect.Ptr:
return bigNum, nil
}