Skip to content

Commit

Permalink
Refine evm log filter normailization error
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed Sep 20, 2024
1 parent e3fdc52 commit ccc5801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func NormalizeEthBlockNumber(
// pending or latest => latest_mined or latest_state
block, err := w3c.Eth.BlockByNumber(*blockNum, false)
if err != nil {
return nil, errors.WithMessage(err, "failed to normalize block number")
return nil, errors.WithMessagef(err, "failed to get block (%v)", *blockNum)
}

// !!! eth rpc may return nil for `pending` and `earlist` block number
Expand Down

0 comments on commit ccc5801

Please sign in to comment.