Skip to content

Commit 19d8bca

Browse files
committed
nit: correct outdated comment
1 parent 74cb161 commit 19d8bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/evm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,8 +1341,8 @@ impl<'a, Ext, Db: Database + DatabaseCommit> EvmReady<'a, Ext, Db> {
13411341
let mut search_range = SearchRange::new(MIN_TRANSACTION_GAS, initial_limit);
13421342
search_range.maybe_lower_max(self.block_gas_limit().saturating_to::<u64>());
13431343

1344-
// The highest possible gas is the minimum of the initial limit and the
1345-
// block gas limit.
1344+
// Check that the account has enough ETH to cover the gas, and lower if
1345+
// necessary.
13461346
let allowance = unwrap_or_trevm_err!(self.gas_allowance(), self);
13471347
search_range.maybe_lower_max(allowance);
13481348

0 commit comments

Comments
 (0)