#[non_exhaustive]pub enum SetCodeTransactionDecodeError {
Show 13 variants
Envelope(TransactionEnvelopeError),
WrongTransactionType {
type_byte: u8,
},
WrongFieldCount {
expected: usize,
found: usize,
},
FieldDecode {
field: SetCodeTransactionField,
source: DecodeError,
},
AuthorizationFieldDecode {
field: SetCodeAuthorizationField,
source: DecodeError,
},
InvalidToLength {
found: usize,
},
InvalidYParity {
value: u64,
},
InvalidAccessListEntryFieldCount {
found: usize,
},
InvalidAccessListAddressLength {
found: usize,
},
InvalidStorageKeyLength {
found: usize,
},
InvalidAuthorizationFieldCount {
found: usize,
},
InvalidAuthorizationAddressLength {
found: usize,
},
InvalidAuthorizationYParity {
value: u64,
},
}Expand description
EIP-7702 set-code transaction decode failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Envelope(TransactionEnvelopeError)
Envelope classification failed before set-code fields could decode.
WrongTransactionType
A non-EIP-7702 envelope was supplied to this decoder.
WrongFieldCount
Transaction payload did not contain exactly thirteen fields.
FieldDecode
A field failed RLP or primitive-domain decoding.
Fields
field: SetCodeTransactionFieldField being decoded.
source: DecodeErrorUnderlying decode error.
AuthorizationFieldDecode
An authorization tuple sub-field failed RLP or primitive-domain decoding.
Fields
field: SetCodeAuthorizationFieldAuthorization tuple sub-field being decoded.
source: DecodeErrorUnderlying decode error.
InvalidToLength
The destination field was not a 20-byte address.
InvalidYParity
Signature y parity was not 0 or 1.
InvalidAccessListEntryFieldCount
Access-list entry was not [address, storageKeys].
InvalidAccessListAddressLength
Access-list address was not a 20-byte scalar.
InvalidStorageKeyLength
Access-list storage key was not a 32-byte scalar.
InvalidAuthorizationFieldCount
Authorization tuple did not contain exactly six fields.
InvalidAuthorizationAddressLength
Authorization address was not a 20-byte scalar.
InvalidAuthorizationYParity
Authorization y parity was not 0 or 1.
Implementations§
Trait Implementations§
Source§impl Clone for SetCodeTransactionDecodeError
impl Clone for SetCodeTransactionDecodeError
Source§fn clone(&self) -> SetCodeTransactionDecodeError
fn clone(&self) -> SetCodeTransactionDecodeError
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 SetCodeTransactionDecodeError
impl Eq for SetCodeTransactionDecodeError
Source§impl PartialEq for SetCodeTransactionDecodeError
impl PartialEq for SetCodeTransactionDecodeError
Source§fn eq(&self, other: &SetCodeTransactionDecodeError) -> bool
fn eq(&self, other: &SetCodeTransactionDecodeError) -> bool
self and other values to be equal, and is used by ==.