Merge pull request #247 from cerc-io/ian_gas_price

use GasFeeCap for unmined tx GasPrice
This commit was merged in pull request #247.
This commit is contained in:
Ian Norden
2023-06-14 12:50:29 -05:00
committed by GitHub
+1 -1
View File
@@ -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