Skip to content

Commit

Permalink
chore: reorder conversion error variants (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Apr 10, 2024
1 parent d79cc4a commit 496d0e7
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions crates/rpc-types/src/eth/transaction/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@
#[allow(missing_copy_implementations)]
#[allow(missing_docs)]
pub enum ConversionError {
/// Missing `gasPrice` field for Legacy transaction.
#[error("missing `gasPrice` field for Legacy transaction")]
MissingGasPrice,
/// Error during EIP-2718 transaction coding.
#[error(transparent)]
Eip2718Error(#[from] alloy_eips::eip2718::Eip2718Error),
/// [`alloy_primitives::SignatureError`].
#[error(transparent)]
SignatureError(#[from] alloy_primitives::SignatureError),
/// Missing signature for transaction.
#[error("missing signature for transaction")]
MissingSignature,
/// Missing `chainId` field for EIP-1559 transaction.
#[error("missing `chainId` field for EIP-155 transaction")]
MissingChainId,
/// Missing `gasPrice` field for Legacy transaction.
#[error("missing `gasPrice` field for Legacy transaction")]
MissingGasPrice,
/// Missing `accessList` field for EIP-2930 transaction.
#[error("missing `accessList` field for EIP-2930 transaction")]
MissingAccessList,
/// Missing `maxFeePerGas` field for EIP-1559 transaction.
#[error("missing `maxFeePerGas` field for EIP-1559 transaction")]
MissingMaxFeePerGas,
/// Missing `to` field for EIP-4844 transaction.
#[error("missing `to` field for EIP-4844 transaction")]
MissingTo,
/// Missing `maxPriorityFeePerGas` field for EIP-1559 transaction.
#[error("missing `maxPriorityFeePerGas` field for EIP-1559 transaction")]
MissingMaxPriorityFeePerGas,
/// Missing `maxFeePerBlobGas` field for EIP-1559 transaction.
#[error("missing `maxFeePerBlobGas` field for EIP-1559 transaction")]
MissingMaxFeePerBlobGas,
/// Missing `chainId` field for EIP-1559 transaction.
#[error("missing `chainId` field for EIP-155 transaction")]
MissingChainId,
/// Missing `to` field for EIP-4844 transaction.
#[error("missing `to` field for EIP-4844 transaction")]
MissingTo,
/// Missing `chainId` field for EIP-1559 transaction.
#[error("missing `blobVersionedHashes` field for EIP-4844 transaction")]
MissingBlobVersionedHashes,
/// [`alloy_primitives::SignatureError`].
#[error(transparent)]
SignatureError(#[from] alloy_primitives::SignatureError),
/// Error during EIP-2718 transaction coding.
#[error(transparent)]
Eip2718Error(#[from] alloy_eips::eip2718::Eip2718Error),
}

0 comments on commit 496d0e7

Please sign in to comment.