mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: fix typo (#2736)
This commit is contained in:
@ -14,7 +14,7 @@ pub enum BlockExecutionError {
|
||||
#[error("Header bloom filter {got:?} is different than expected {expected:?}.")]
|
||||
BloomLogDiff { got: Box<Bloom>, expected: Box<Bloom> },
|
||||
#[error("Transaction gas limit {transaction_gas_limit} is more than blocks available gas {block_available_gas}")]
|
||||
TransactionGasLimitMoreThenAvailableBlockGas {
|
||||
TransactionGasLimitMoreThanAvailableBlockGas {
|
||||
transaction_gas_limit: u64,
|
||||
block_available_gas: u64,
|
||||
},
|
||||
|
||||
@ -232,7 +232,7 @@ where
|
||||
// must be no greater than the block’s gasLimit.
|
||||
let block_available_gas = block.header.gas_limit - cumulative_gas_used;
|
||||
if transaction.gas_limit() > block_available_gas {
|
||||
return Err(BlockExecutionError::TransactionGasLimitMoreThenAvailableBlockGas {
|
||||
return Err(BlockExecutionError::TransactionGasLimitMoreThanAvailableBlockGas {
|
||||
transaction_gas_limit: transaction.gas_limit(),
|
||||
block_available_gas,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user