From 57c395f59a38d37e308818ba7eab62f961bb1e2c Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 24 Jul 2025 01:06:29 +0200 Subject: [PATCH] core/types: fix parameter access --- core/types/transaction_signing.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go index c37a0f7e1f..b062d35e4e 100644 --- a/core/types/transaction_signing.go +++ b/core/types/transaction_signing.go @@ -41,7 +41,7 @@ type sigCache struct { // MakeSigner returns a Signer based on the given chain config and block number. func MakeSigner(config *params.Config2, blockNumber *big.Int, blockTime uint64) Signer { number := blockNumber.Uint64() - chainID := params.Get[*params.ChainID](config).BigInt() + chainID := params.ChainID.Get(config) var signer Signer switch { @@ -71,7 +71,7 @@ func MakeSigner(config *params.Config2, blockNumber *big.Int, blockTime uint64) // Use this in transaction-handling code where the current block number is unknown. If you // have the current block number available, use MakeSigner instead. func LatestSigner(config *params.Config2) Signer { - chainID := params.Get[*params.ChainID](config).BigInt() + chainID := params.ChainID.Get(config) var signer Signer if chainID != nil { @@ -212,7 +212,6 @@ func newModernSigner(chainID *big.Int, fork forks.Fork) Signer { } s.txtypes[LegacyTxType] = struct{}{} // configure tx types - // TODO: fix this if fork.After(forks.Berlin) { s.txtypes[AccessListTxType] = struct{}{} }