diff options
author | manlio <manlio.poltronieri@gmail.com> | 2019-05-17 21:24:04 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2019-05-17 21:24:04 +0800 |
commit | e687d063c360a78786e021f5ada935ef643e3815 (patch) | |
tree | 831fec4073ec8ac73196480aba8a123ab2257623 | |
parent | 509facd631e646989dae7fc9c3ec11a05b11a800 (diff) | |
download | go-tangerine-e687d063c360a78786e021f5ada935ef643e3815.tar go-tangerine-e687d063c360a78786e021f5ada935ef643e3815.tar.gz go-tangerine-e687d063c360a78786e021f5ada935ef643e3815.tar.bz2 go-tangerine-e687d063c360a78786e021f5ada935ef643e3815.tar.lz go-tangerine-e687d063c360a78786e021f5ada935ef643e3815.tar.xz go-tangerine-e687d063c360a78786e021f5ada935ef643e3815.tar.zst go-tangerine-e687d063c360a78786e021f5ada935ef643e3815.zip |
accounts/abi: fix TestUnpackMethodIntoMap (#19484)
-rw-r--r-- | accounts/abi/abi_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go index 42b60a639..60fe10457 100644 --- a/accounts/abi/abi_test.go +++ b/accounts/abi/abi_test.go @@ -785,7 +785,7 @@ func TestUnpackMethodIntoMap(t *testing.T) { if err = abi.UnpackIntoMap(getMap, "get", data); err != nil { t.Error(err) } - if len(sendMap) != 1 { + if len(getMap) != 1 { t.Error("unpacked `get` map expected to have length 1") } expectedBytes := []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 88, 0} |