Skip to content

internal/ethapi/transaction_args.go

Type MOD
Upstream Lines 614
Changed +1 -1

Rename IsLondon→IsEIP1559 to honour the Mystique/ETC chain config (London without EIP-1559)

diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go
index 1032d067f..903f8d510 100644
--- a/internal/ethapi/transaction_args.go
+++ b/internal/ethapi/transaction_args.go
@@ -209,7 +209,7 @@ func (args *TransactionArgs) setFeeDefaults(ctx context.Context, b Backend, head
    }

    // Sanity check the non-EIP-1559 fee parameters.
-   isLondon := b.ChainConfig().IsLondon(head.Number)
+   isLondon := b.ChainConfig().IsEIP1559(head.Number)
    if args.GasPrice != nil && !eip1559ParamsSet {
        // Zero gas-price is not allowed after London fork
        if args.GasPrice.ToInt().Sign() == 0 && isLondon {

← Back to RPC & API