aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/abi_test.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2017-12-28 18:17:45 +0800
committerMartin Holst Swende <martin@swende.se>2018-02-21 19:27:50 +0800
commit1ede68355db6adbf468d198a8d1ecb0ad1a3ea31 (patch)
tree288e71dbf81a19030f36f507d6b91bd42f3ba979 /accounts/abi/abi_test.go
parent5603715c06998ff9ed30eb134c4398ad1439ef48 (diff)
downloaddexon-1ede68355db6adbf468d198a8d1ecb0ad1a3ea31.tar.gz
dexon-1ede68355db6adbf468d198a8d1ecb0ad1a3ea31.tar.zst
dexon-1ede68355db6adbf468d198a8d1ecb0ad1a3ea31.zip
accounts/abi: add another unpack interface
Diffstat (limited to 'accounts/abi/abi_test.go')
-rw-r--r--accounts/abi/abi_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go
index 2d43b631c..3bef6add5 100644
--- a/accounts/abi/abi_test.go
+++ b/accounts/abi/abi_test.go
@@ -689,7 +689,11 @@ func TestABI_MethodById(t *testing.T) {
}
for name, m := range abi.Methods {
a := fmt.Sprintf("%v", m)
- b := fmt.Sprintf("%v", abi.MethodById(m.Id()))
+ m2,err := abi.MethodById(m.Id())
+ if err != nil {
+ t.Fatal(err)
+ }
+ b := fmt.Sprintf("%v", m2)
if a != b {
t.Errorf("Method %v (id %v) not 'findable' by id in ABI", name, common.ToHex(m.Id()))
}