From a1fbc1875b81ffb6939355b5ddc6a2320df8d971 Mon Sep 17 00:00:00 2001 From: i-norden Date: Wed, 14 Jun 2023 11:49:57 -0500 Subject: [PATCH] use GasFeeCap for unmined tx GasPrice --- pkg/eth/backend_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/eth/backend_utils.go b/pkg/eth/backend_utils.go index 6965b6dd..cf7246a7 100644 --- a/pkg/eth/backend_utils.go +++ b/pkg/eth/backend_utils.go @@ -202,7 +202,7 @@ func NewRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber price := math.BigMin(new(big.Int).Add(tx.GasTipCap(), baseFee), tx.GasFeeCap()) result.GasPrice = (*hexutil.Big)(price) } else { - result.GasPrice = nil + result.GasPrice = (*hexutil.Big)(tx.GasFeeCap()) } } return result