Skip to content

Commit

Permalink
fix eth_gasEstimate issue (NethermindEth#7312)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjnrohit authored Aug 7, 2024
1 parent 6beafee commit 24d8e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Evm/Tracing/GasEstimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public GasEstimator(ITransactionProcessor transactionProcessor, IReadOnlyStatePr

// Calculate and return additional gas required in case of insufficient funds.
UInt256 senderBalance = _stateProvider.GetBalance(tx.SenderAddress);
if (tx.Value != UInt256.Zero && tx.Value > senderBalance)
if (tx.Value != UInt256.Zero && tx.Value > senderBalance && !tx.IsSystem())
{
return gasTracer.CalculateAdditionalGasRequired(tx, releaseSpec);
}
Expand Down

0 comments on commit 24d8e24

Please sign in to comment.