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:
Nazarii Denha 2023-08-08 16:31:34 +02:00 committed by GitHub
parent fcd7212b60
commit cb38ec47a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}