Skip to content

Commit ba518c3

Browse files
committed
core/types: fix parameter access
1 parent 7ce9937 commit ba518c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/types/transaction_signing.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type sigCache struct {
4141
// MakeSigner returns a Signer based on the given chain config and block number.
4242
func MakeSigner(config *params.Config2, blockNumber *big.Int, blockTime uint64) Signer {
4343
number := blockNumber.Uint64()
44-
chainID := params.Get[*params.ChainID](config).BigInt()
44+
chainID := params.ChainID.Get(config)
4545

4646
var signer Signer
4747
switch {
@@ -71,7 +71,7 @@ func MakeSigner(config *params.Config2, blockNumber *big.Int, blockTime uint64)
7171
// Use this in transaction-handling code where the current block number is unknown. If you
7272
// have the current block number available, use MakeSigner instead.
7373
func LatestSigner(config *params.Config2) Signer {
74-
chainID := params.Get[*params.ChainID](config).BigInt()
74+
chainID := params.ChainID.Get(config)
7575

7676
var signer Signer
7777
if chainID != nil {
@@ -212,7 +212,6 @@ func newModernSigner(chainID *big.Int, fork forks.Fork) Signer {
212212
}
213213
s.txtypes[LegacyTxType] = struct{}{}
214214
// configure tx types
215-
// TODO: fix this
216215
if fork.After(forks.Berlin) {
217216
s.txtypes[AccessListTxType] = struct{}{}
218217
}

0 commit comments

Comments
 (0)