fix(signer): update LatestSigner logic (#880)

This commit is contained in:
HAOYUatHZ 2024-07-05 18:38:21 +08:00 committed by GitHub
parent dcd0004376
commit a40ef3f6e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}