Skip to content

Commit

Permalink
Merge branch 'main' into add-peer-check-if-service-is-running
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Trintinalia authored Jan 23, 2025
2 parents b07955f + 113cf8b commit 51f0e7d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,11 @@ public Optional<TransactionSimulatorResult> processWithWorldUpdater(
final long nonce =
callParams
.getNonce()
.orElse(
Optional.ofNullable(updater.get(senderAddress)).map(Account::getNonce).orElse(0L));
.orElseGet(
() ->
Optional.ofNullable(updater.get(senderAddress))
.map(Account::getNonce)
.orElse(0L));

final long simulationGasCap =
calculateSimulationGasCap(callParams.getGasLimit(), blockHeaderToProcess.getGasLimit());
Expand Down

0 comments on commit 51f0e7d

Please sign in to comment.