Skip to content

Commit

Permalink
use GasFeeCap for unmined tx GasPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
i-norden committed Jun 14, 2023
1 parent 68d6695 commit a1fbc18
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 a1fbc18

Please sign in to comment.