Skip to content

Commit

Permalink
fix(signer): update LatestSigner logic (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmountaintop authored Jul 5, 2024
1 parent dcd0004 commit a40ef3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/types/transaction_signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func MakeSigner(config *params.ChainConfig, blockNumber *big.Int) Signer {
// have the current block number available, use MakeSigner instead.
func LatestSigner(config *params.ChainConfig) Signer {
if config.ChainID != nil {
if config.CurieBlock != nil {
return NewLondonSignerWithEIP4844(config.ChainID)
}
if config.LondonBlock != nil {
return NewLondonSignerWithEIP4844(config.ChainID)
}
Expand Down

0 comments on commit a40ef3f

Please sign in to comment.