Skip to content

Commit

Permalink
Merge pull request #247 from cerc-io/ian_gas_price
Browse files Browse the repository at this point in the history
use GasFeeCap for unmined tx GasPrice
  • Loading branch information
i-norden committed Jun 14, 2023
2 parents 68d6695 + a1fbc18 commit 60b2f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/eth/backend_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60b2f5f

Please sign in to comment.