diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-06-10 15:14:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-10 15:14:42 +0800 |
commit | c039bb38d45d9d8efcd88e1342d35656651a8ac8 (patch) | |
tree | 4fac6d666221c972593eb7bef701dfeefe60ecc2 /accounts/abi/method.go | |
parent | 6886913fdf7feaf39c49f1afebae1ef8ea10b514 (diff) | |
parent | 89c6c5bb85ff24c152218f245fa366e733c951a7 (diff) | |
download | dexon-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.go | 2 |
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...) |