Skip to content

Commit

Permalink
add TryFromIntError in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Apr 15, 2024
1 parent bd44e9c commit 8e53e76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/rpc-types/src/eth/transaction/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ pub enum ConversionError {
#[error("missing full transactions required for block decoding")]
MissingFullTransactions,
/// Base fee per gas integer conversion error
#[error("base fee per gas integer conversion error")]
#[error("base fee per gas integer conversion error: {0}")]
BaseFeePerGasConversion(TryFromIntError),
/// Gas limit integer conversion error
#[error("gas limit integer conversion error")]
#[error("gas limit integer conversion error: {0}")]
GasLimitConversion(TryFromIntError),
/// Gas used integer conversion error
#[error("gas used integer conversion error")]
#[error("gas used integer conversion error: {0}")]
GasUsedConversion(TryFromIntError),
/// Missing block number
#[error("missing block number")]
MissingBlockNumber,
/// Blob gas used integer conversion error
#[error("blob gas used integer conversion error")]
#[error("blob gas used integer conversion error: {0}")]
BlobGasUsedConversion(TryFromIntError),
/// Excess blob gas integer conversion error
#[error("excess blob gas integer conversion error")]
#[error("excess blob gas integer conversion error: {0}")]
ExcessBlobGasConversion(TryFromIntError),
}

0 comments on commit 8e53e76

Please sign in to comment.