#[non_exhaustive]pub enum SetCodeTransactionValidityError {
Show 13 variants
InactiveFork,
ForkBeforePrague,
WrongTransactionChain,
PriorityFeeExceedsMaxFee,
GasLimitTooLow,
EmptyAuthorizationList,
AuthorizationDecode(SetCodeTransactionDecodeError),
MissingAuthorizationAuthority {
authorization_index: usize,
},
WrongAuthorizationChain {
authorization_index: usize,
},
AuthorizationNonceTooHigh {
authorization_index: usize,
},
MissingAuthorityState {
authorization_index: usize,
},
AuthorityNonceMismatch {
authorization_index: usize,
},
InvalidAuthorityCode {
authorization_index: usize,
},
}Expand description
EIP-7702 set-code transaction validity failure.
Per-authorization-tuple failures are exposed for diagnostics, but the transaction validity gate does not return them as fatal errors. EIP-7702 skips invalid authorization tuples and continues processing later tuples.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InactiveFork
The selected fork is inactive for this validation context.
ForkBeforePrague
Set-code transactions are not admitted before Prague/Pectra.
WrongTransactionChain
The transaction chain ID does not match the validation context.
PriorityFeeExceedsMaxFee
The priority fee exceeds the max fee.
GasLimitTooLow
The gas limit is below the caller-computed minimum.
EmptyAuthorizationList
EIP-7702 transactions must have at least one authorization tuple.
AuthorizationDecode(SetCodeTransactionDecodeError)
A previously decoded authorization tuple failed to iterate.
MissingAuthorizationAuthority
No verified authority was supplied for this authorization tuple.
Fields
Authorization tuple index.
WrongAuthorizationChain
Authorization chain ID is neither universal nor the expected chain.
Fields
Authorization tuple index.
AuthorizationNonceTooHigh
Authorization nonce is u64::MAX and cannot be incremented.
Fields
Authorization tuple index.
MissingAuthorityState
No account state was supplied for the recovered authority.
Fields
Authorization tuple index.
AuthorityNonceMismatch
Recovered authority nonce does not match the authorization nonce.
Fields
Authorization tuple index.
InvalidAuthorityCode
Authority account code is neither empty nor an EIP-7702 delegation.
Fields
Authorization tuple index.
Implementations§
Trait Implementations§
Source§impl Clone for SetCodeTransactionValidityError
impl Clone for SetCodeTransactionValidityError
Source§fn clone(&self) -> SetCodeTransactionValidityError
fn clone(&self) -> SetCodeTransactionValidityError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SetCodeTransactionValidityError
impl Eq for SetCodeTransactionValidityError
Source§impl PartialEq for SetCodeTransactionValidityError
impl PartialEq for SetCodeTransactionValidityError
Source§fn eq(&self, other: &SetCodeTransactionValidityError) -> bool
fn eq(&self, other: &SetCodeTransactionValidityError) -> bool
self and other values to be equal, and is used by ==.