aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/abi_test.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-02-21 22:14:07 +0800
committerGitHub <noreply@github.com>2018-02-21 22:14:07 +0800
commitf54506ccf8c4a14758127d7ae24de5f5f0fd0b19 (patch)
tree56de0615f992ce54aca2d312237f06ff5d299de6 /accounts/abi/abi_test.go
parentb585f761283957dcd1783a134449a01423145df3 (diff)
parent61f2279bdeac595a4607080028715a8222db6cd4 (diff)
downloadgo-tangerine-f54506ccf8c4a14758127d7ae24de5f5f0fd0b19.tar
go-tangerine-f54506ccf8c4a14758127d7ae24de5f5f0fd0b19.tar.gz
go-tangerine-f54506ccf8c4a14758127d7ae24de5f5f0fd0b19.tar.bz2
go-tangerine-f54506ccf8c4a14758127d7ae24de5f5f0fd0b19.tar.lz
go-tangerine-f54506ccf8c4a14758127d7ae24de5f5f0fd0b19.tar.xz
go-tangerine-f54506ccf8c4a14758127d7ae24de5f5f0fd0b19.tar.zst
go-tangerine-f54506ccf8c4a14758127d7ae24de5f5f0fd0b19.zip
Merge pull request #15770 from holiman/abi_nostruct
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..35e0094dd 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.Fatalf("Failed to look up ABI method: %v", 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()))
}