mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
Fix/test api get block trace by number or hash (#453)
fix test Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
This commit is contained in:
parent
fcd7212b60
commit
cb38ec47a5
1 changed files with 3 additions and 1 deletions
|
|
@ -142,7 +142,9 @@ func checkChainAndProof(t *testing.T, b *testBackend, parent *types.Block, block
|
|||
for addr, wrappedProof := range storageProof {
|
||||
for keyStr, data2 := range wrappedProof {
|
||||
data1, err := statedb.GetStorageProof(common.HexToAddress(addr), common.HexToHash(keyStr))
|
||||
assert.NoError(t, err)
|
||||
if len(data2) > 0 {
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
verifyProof(t, data1, data2)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue