Skip to content

internal/ethapi/transaction_args.go — Version Comparison

v1.16.8 v1.17.3
Branch etc/v1.16.8-full-node etc/v1.17.3-full-node
Delta +1 -1 +1 -1
ETC delta on v1.16.8 (+1 -1)
diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go
index 23aa8e594..24c6512e6 100644
--- a/internal/ethapi/transaction_args.go
+++ b/internal/ethapi/transaction_args.go
@@ -208,7 +208,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 {
ETC delta on v1.17.3 (+1 -1)
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 Version Comparison