diff options
author | Benoit Verkindt <benoit.verkindt@gmail.com> | 2017-12-06 23:42:16 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-12-06 23:42:16 +0800 |
commit | eab2201f808bbe1ef08a504f86cf41dd03aa979c (patch) | |
tree | fe56296ef420ad1b7061f05514caf155b35dcd31 /eth/api_test.go | |
parent | e85b68ef53e80eb66c7ab394c57e9eb146a60b91 (diff) | |
download | go-tangerine-eab2201f808bbe1ef08a504f86cf41dd03aa979c.tar go-tangerine-eab2201f808bbe1ef08a504f86cf41dd03aa979c.tar.gz go-tangerine-eab2201f808bbe1ef08a504f86cf41dd03aa979c.tar.bz2 go-tangerine-eab2201f808bbe1ef08a504f86cf41dd03aa979c.tar.lz go-tangerine-eab2201f808bbe1ef08a504f86cf41dd03aa979c.tar.xz go-tangerine-eab2201f808bbe1ef08a504f86cf41dd03aa979c.tar.zst go-tangerine-eab2201f808bbe1ef08a504f86cf41dd03aa979c.zip |
eth: return rlp-decoded values from debug_storageRangeAt (#15476)
Fixes #15196
Diffstat (limited to 'eth/api_test.go')
-rw-r--r-- | eth/api_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eth/api_test.go b/eth/api_test.go index 49ce38688..248bc3ab6 100644 --- a/eth/api_test.go +++ b/eth/api_test.go @@ -79,7 +79,10 @@ func TestStorageRangeAt(t *testing.T) { }, } for _, test := range tests { - result := storageRangeAt(state.StorageTrie(addr), test.start, test.limit) + result, err := storageRangeAt(state.StorageTrie(addr), test.start, test.limit) + if err != nil { + t.Error(err) + } if !reflect.DeepEqual(result, test.want) { t.Fatalf("wrong result for range 0x%x.., limit %d:\ngot %s\nwant %s", test.start, test.limit, dumper.Sdump(result), dumper.Sdump(&test.want)) |