Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
exeokan committed Jan 27, 2025
1 parent 442355e commit daee9ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/evm/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,12 @@ impl<C: sov_modules_api::Context> Evm<C> {
};

let block_number = match block_number {
BlockNumberOrTag::Pending =>
self.block_number_for_id(&BlockNumberOrTag::Latest, working_set)? + 1,
_ =>
self.block_number_for_id(&block_number, working_set)?
BlockNumberOrTag::Pending => {
self.block_number_for_id(&BlockNumberOrTag::Latest, working_set)? + 1
}
_ => self.block_number_for_id(&block_number, working_set)?,
};

let current_spec = citrea_spec_id_to_evm_spec_id(fork_fn(block_number).spec_id);

self.set_state_to_end_of_evm_block_by_block_id(block_id, working_set)?;
Expand Down

0 comments on commit daee9ea

Please sign in to comment.