Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Sep 21, 2024
1 parent 11e8ac8 commit 193ca40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/executor/src/canyon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ where
{
// If the canyon hardfork is active at the current timestamp, and it was not active at the
// previous block timestamp, then we need to force-deploy the create2 deployer contract.
if config.is_canyon_active(timestamp)
&& !config.is_canyon_active(db.database.parent_block_header().timestamp)
if config.is_canyon_active(timestamp) &&
!config.is_canyon_active(db.database.parent_block_header().timestamp)
{
// Load the create2 deployer account from the cache.
let acc = db.load_cache_account(CREATE_2_DEPLOYER_ADDR)?;
Expand Down
4 changes: 2 additions & 2 deletions crates/executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ where
// The sum of the transaction’s gas limit, Tg, and the gas utilized in this block prior,
// must be no greater than the block’s gasLimit.
let block_available_gas = (gas_limit - cumulative_gas_used) as u128;
if extract_tx_gas_limit(&transaction) > block_available_gas
&& (is_regolith || !is_system_transaction(&transaction))
if extract_tx_gas_limit(&transaction) > block_available_gas &&
(is_regolith || !is_system_transaction(&transaction))
{
return Err(ExecutorError::BlockGasLimitExceeded);

Check warning on line 176 in crates/executor/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

crates/executor/src/lib.rs#L176

Added line #L176 was not covered by tests
}
Expand Down

0 comments on commit 193ca40

Please sign in to comment.