mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
graphql: fix GasPrice for blob and setcode transactions
This commit is contained in:
parent
eaaa5b716d
commit
c82abec004
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ func (t *Transaction) GasPrice(ctx context.Context) hexutil.Big {
|
||||||
return hexutil.Big{}
|
return hexutil.Big{}
|
||||||
}
|
}
|
||||||
switch tx.Type() {
|
switch tx.Type() {
|
||||||
case types.DynamicFeeTxType:
|
case types.DynamicFeeTxType, types.BlobTxType, types.SetCodeTxType:
|
||||||
if block != nil {
|
if block != nil {
|
||||||
if baseFee, _ := block.BaseFeePerGas(ctx); baseFee != nil {
|
if baseFee, _ := block.BaseFeePerGas(ctx); baseFee != nil {
|
||||||
// price = min(gasTipCap + baseFee, gasFeeCap)
|
// price = min(gasTipCap + baseFee, gasFeeCap)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue