diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 4ab060b7b4..ac5edcdfa1 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2105,7 +2105,7 @@ func (s *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash common. "effectiveGasPrice": (*hexutil.Big)(receipt.EffectiveGasPrice), } - if fields["effectiveGasPrice"] == nil { + if receipt.EffectiveGasPrice == nil { fields["effectiveGasPrice"] = new(hexutil.Big) }