Skip to content

Commit

Permalink
fix: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
niveda-krish committed Dec 10, 2024
1 parent 029e64f commit e979527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/builder/src/sender/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl From<ProviderError> for TxSenderError {
// Reth: https://github.com/paradigmxyz/reth/blob/8e4a917ec1aa70b3779083454ff2d5ecf6b44168/crates/rpc/rpc-eth-types/src/error/mod.rs#L624
// Erigon: https://github.com/erigontech/erigon/blob/96fabf3fd1a4ddce26b845ffe2b6cfb50d5b4b2d/txnprovider/txpool/txpoolcfg/txpoolcfg.go#L124
fn parse_known_call_execution_failed(message: &str, code: &i64) -> Option<TxSenderError> {
// The error code is -32003 or -32005 when condition is not met, we check this first before checking the message
// The error code is -32003 or -32005 when condition is not met, we check error codes before checking the message
// https://eips.ethereum.org/EIPS/eip-7796
if *code == -32003 || *code == -32005 {
return Some(TxSenderError::ConditionNotMet);
Expand Down

0 comments on commit e979527

Please sign in to comment.