#[non_exhaustive]pub enum BlobTransactionDecodeError {
Envelope(TransactionEnvelopeError),
WrongTransactionType {
type_byte: u8,
},
WrongFieldCount {
expected: usize,
found: usize,
},
FieldDecode {
field: BlobTransactionField,
source: DecodeError,
},
InvalidToLength {
found: usize,
},
InvalidYParity {
value: u64,
},
InvalidAccessListEntryFieldCount {
found: usize,
},
InvalidAccessListAddressLength {
found: usize,
},
InvalidStorageKeyLength {
found: usize,
},
InvalidBlobVersionedHashLength {
found: usize,
},
}Expand description
EIP-4844 blob 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 blob fields could decode.
WrongTransactionType
A non-EIP-4844 envelope was supplied to this decoder.
WrongFieldCount
Transaction payload did not contain exactly fourteen fields.
FieldDecode
A field failed RLP or primitive-domain decoding.
InvalidToLength
The to 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.
InvalidBlobVersionedHashLength
Blob versioned hash was not a 32-byte scalar.
Implementations§
Trait Implementations§
Source§impl Clone for BlobTransactionDecodeError
impl Clone for BlobTransactionDecodeError
Source§fn clone(&self) -> BlobTransactionDecodeError
fn clone(&self) -> BlobTransactionDecodeError
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 BlobTransactionDecodeError
Source§impl Debug for BlobTransactionDecodeError
impl Debug for BlobTransactionDecodeError
Source§impl Display for BlobTransactionDecodeError
impl Display for BlobTransactionDecodeError
impl Eq for BlobTransactionDecodeError
Source§impl PartialEq for BlobTransactionDecodeError
impl PartialEq for BlobTransactionDecodeError
Source§fn eq(&self, other: &BlobTransactionDecodeError) -> bool
fn eq(&self, other: &BlobTransactionDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlobTransactionDecodeError
Auto Trait Implementations§
impl Freeze for BlobTransactionDecodeError
impl RefUnwindSafe for BlobTransactionDecodeError
impl Send for BlobTransactionDecodeError
impl Sync for BlobTransactionDecodeError
impl Unpin for BlobTransactionDecodeError
impl UnsafeUnpin for BlobTransactionDecodeError
impl UnwindSafe for BlobTransactionDecodeError
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