mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
graphql: add support for fee parameters of SetCodeTx
This commit is contained in:
parent
a0274e0b3e
commit
33888a9e6b
1 changed files with 2 additions and 2 deletions
|
|
@ -318,7 +318,7 @@ func (t *Transaction) MaxFeePerGas(ctx context.Context) *hexutil.Big {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
switch tx.Type() {
|
switch tx.Type() {
|
||||||
case types.DynamicFeeTxType, types.BlobTxType:
|
case types.DynamicFeeTxType, types.BlobTxType, types.SetCodeTxType:
|
||||||
return (*hexutil.Big)(tx.GasFeeCap())
|
return (*hexutil.Big)(tx.GasFeeCap())
|
||||||
default:
|
default:
|
||||||
return nil
|
return nil
|
||||||
|
|
@ -331,7 +331,7 @@ func (t *Transaction) MaxPriorityFeePerGas(ctx context.Context) *hexutil.Big {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
switch tx.Type() {
|
switch tx.Type() {
|
||||||
case types.DynamicFeeTxType, types.BlobTxType:
|
case types.DynamicFeeTxType, types.BlobTxType, types.SetCodeTxType:
|
||||||
return (*hexutil.Big)(tx.GasTipCap())
|
return (*hexutil.Big)(tx.GasTipCap())
|
||||||
default:
|
default:
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue