Trait InvalidTxError
pub trait InvalidTxError:
Error
+ Send
+ Sync
+ Any
+ 'static {
// Required methods
fn is_nonce_too_low(&self) -> bool;
fn as_invalid_tx_err(&self) -> Option<&InvalidTransaction>;
}
Available on crate feature
evm
only.Expand description
Abstraction over transaction validation error.
Required Methods§
fn is_nonce_too_low(&self) -> bool
fn is_nonce_too_low(&self) -> bool
Returns whether the error cause by transaction having a nonce lower than expected.
fn as_invalid_tx_err(&self) -> Option<&InvalidTransaction>
fn as_invalid_tx_err(&self) -> Option<&InvalidTransaction>
Returns the underlying InvalidTransaction
if any.
This is primarily used for error conversions, e.g. for rpc responses.