aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/method.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-06-10 15:14:42 +0800
committerGitHub <noreply@github.com>2016-06-10 15:14:42 +0800
commitc039bb38d45d9d8efcd88e1342d35656651a8ac8 (patch)
tree4fac6d666221c972593eb7bef701dfeefe60ecc2 /accounts/abi/method.go
parent6886913fdf7feaf39c49f1afebae1ef8ea10b514 (diff)
parent89c6c5bb85ff24c152218f245fa366e733c951a7 (diff)
downloaddexon-c039bb38d45d9d8efcd88e1342d35656651a8ac8.tar
dexon-c039bb38d45d9d8efcd88e1342d35656651a8ac8.tar.gz
dexon-c039bb38d45d9d8efcd88e1342d35656651a8ac8.tar.bz2
dexon-c039bb38d45d9d8efcd88e1342d35656651a8ac8.tar.lz
dexon-c039bb38d45d9d8efcd88e1342d35656651a8ac8.tar.xz
dexon-c039bb38d45d9d8efcd88e1342d35656651a8ac8.tar.zst
dexon-c039bb38d45d9d8efcd88e1342d35656651a8ac8.zip
Merge pull request #2653 from tbocek/develop
Negative numbers not properly converted in ABI encoding
Diffstat (limited to 'accounts/abi/method.go')
-rw-r--r--accounts/abi/method.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/method.go b/accounts/abi/method.go
index f3d1a44b5..d56f3bc3d 100644
--- a/accounts/abi/method.go
+++ b/accounts/abi/method.go
@@ -62,7 +62,7 @@ func (m Method) pack(method Method, args ...interface{}) ([]byte, error) {
// calculate the offset
offset := len(method.Inputs)*32 + len(variableInput)
// set the offset
- ret = append(ret, packNum(reflect.ValueOf(offset), UintTy)...)
+ ret = append(ret, packNum(reflect.ValueOf(offset))...)
// Append the packed output to the variable input. The variable input
// will be appended at the end of the input.
variableInput = append(variableInput, packed...)