missed one file

This commit is contained in:
Sina Mahmoodi 2024-06-06 19:01:35 +02:00
parent 569a2d7f55
commit d7cd3a0b6f

View file

@ -935,6 +935,14 @@ func (api *API) TraceCall(ctx context.Context, args ethapi.TransactionArgs, bloc
tx = args.ToTransaction(args.GasPrice == nil) tx = args.ToTransaction(args.GasPrice == nil)
traceConfig *TraceConfig traceConfig *TraceConfig
) )
// Lower the basefee to 0 to avoid breaking EVM
// invariants (basefee < feecap).
if msg.GasPrice.Sign() == 0 {
vmctx.BaseFee = new(big.Int)
}
if msg.BlobGasFeeCap != nil && msg.BlobGasFeeCap.BitLen() == 0 {
vmctx.BlobBaseFee = new(big.Int)
}
if config != nil { if config != nil {
traceConfig = &config.TraceConfig traceConfig = &config.TraceConfig
} }