Skip to content

Commit 3dc9448

Browse files
authored
fix firehose eth CallHandler triggering on reverted calls (#3762)
* fix firehose eth CallHandler triggering on reverted calls * call handlers in firehose: use state_reverted, not status_reverted, to also catch issue #3701 * align firehose with RPC behavior using status_reverted and status_failed Co-authored-by: Stéphane Duchesneau <stephane.duchesneau@streamingfast.io>
1 parent b79c21e commit 3dc9448

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

chain/ethereum/src/codec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ impl TryInto<EthereumBlockWithCalls> for &Block {
364364
trace
365365
.calls
366366
.iter()
367+
.filter(|call| !call.status_reverted && !call.status_failed)
367368
.map(|call| CallAt::new(call, self, trace).try_into())
368369
.collect::<Vec<Result<EthereumCall, Error>>>()
369370
})

0 commit comments

Comments
 (0)