Skip to content

Commit

Permalink
fix: eth_getLogs, do not use logs of failed txs
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemmsilva committed Sep 29, 2023
1 parent 5606727 commit e258e89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/evm/jsonrpc/evmchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ func (e *EVMChain) Logs(query *ethereum.FilterQuery) ([]*types.Log, error) {

func filterAndAppendToLogs(query *ethereum.FilterQuery, receipts []*types.Receipt, logs *[]*types.Log) error {
for _, r := range receipts {
if r.Status == types.ReceiptStatusFailed {
continue
}
if !evmtypes.BloomFilter(r.Bloom, query.Addresses, query.Topics) {
continue
}
Expand Down

0 comments on commit e258e89

Please sign in to comment.