diff --git a/cmd/rpcdaemon/commands/trace_adhoc.go b/cmd/rpcdaemon/commands/trace_adhoc.go index f85f441db9f8ba6b70c718479d5df75bd15b9139..ea3a37f68e9f56dbf440f6f6820586f3dc6617b9 100644 --- a/cmd/rpcdaemon/commands/trace_adhoc.go +++ b/cmd/rpcdaemon/commands/trace_adhoc.go @@ -196,6 +196,10 @@ func (args *TraceCallParam) ToMessage(globalGasCap uint64, baseFee *uint256.Int) if gasFeeCap.BitLen() > 0 || gasTipCap.BitLen() > 0 { gasPrice = math2.U256Min(new(uint256.Int).Add(gasTipCap, baseFee), gasFeeCap) } + // Still zero + if gasPrice.IsZero() { + gasPrice.Set(baseFee) + } } } value := new(uint256.Int)