#[non_exhaustive]pub enum DynamicFeeTransactionDecodeError {
Envelope(TransactionEnvelopeError),
WrongTransactionType {
type_byte: u8,
},
WrongFieldCount {
expected: usize,
found: usize,
},
FieldDecode {
field: DynamicFeeTransactionField,
source: DecodeError,
},
InvalidToLength {
found: usize,
},
InvalidYParity {
value: u64,
},
InvalidAccessListEntryFieldCount {
found: usize,
},
InvalidAccessListAddressLength {
found: usize,
},
InvalidStorageKeyLength {
found: usize,
},
}Expand description
EIP-1559 dynamic-fee transaction decode failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Envelope(TransactionEnvelopeError)
Envelope classification failed before dynamic-fee fields could decode.
WrongTransactionType
A non-EIP-1559 envelope was supplied to this decoder.
WrongFieldCount
Transaction payload did not contain exactly twelve fields.
FieldDecode
A field failed RLP or primitive-domain decoding.
Fields
§
field: DynamicFeeTransactionFieldField being decoded.
§
source: DecodeErrorUnderlying decode error.
InvalidToLength
The to field was neither empty nor 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.
Implementations§
Trait Implementations§
Source§impl Clone for DynamicFeeTransactionDecodeError
impl Clone for DynamicFeeTransactionDecodeError
Source§fn clone(&self) -> DynamicFeeTransactionDecodeError
fn clone(&self) -> DynamicFeeTransactionDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DynamicFeeTransactionDecodeError
impl Eq for DynamicFeeTransactionDecodeError
Source§impl PartialEq for DynamicFeeTransactionDecodeError
impl PartialEq for DynamicFeeTransactionDecodeError
Source§fn eq(&self, other: &DynamicFeeTransactionDecodeError) -> bool
fn eq(&self, other: &DynamicFeeTransactionDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DynamicFeeTransactionDecodeError
Auto Trait Implementations§
impl Freeze for DynamicFeeTransactionDecodeError
impl RefUnwindSafe for DynamicFeeTransactionDecodeError
impl Send for DynamicFeeTransactionDecodeError
impl Sync for DynamicFeeTransactionDecodeError
impl Unpin for DynamicFeeTransactionDecodeError
impl UnsafeUnpin for DynamicFeeTransactionDecodeError
impl UnwindSafe for DynamicFeeTransactionDecodeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more