aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/abi.go
diff options
context:
space:
mode:
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
}