Refactor transaction signing

This commit is contained in:
Bret Palsson 2021-09-08 21:55:31 -07:00
parent f5f5155f1d
commit 3b9a0c035f

View File

@ -45,14 +45,10 @@ func MakeSigner(config *params.ChainConfig, blockNumber *big.Int) Signer {
// required to validate transactions on mainnet
chainID := big.NewInt(1)
// Set the chainId to Pulsechain
if config.IsPrimordialPulse(blockNumber) {
chainID = config.ChainID
}
switch {
case config.IsPrimordialPulse(blockNumber):
signer = NewEIP155Signer(chainID)
// Set the chainId to Pulsechain
signer = NewEIP155Signer(config.ChainID)
case config.IsLondon(blockNumber):
signer = NewLondonSigner(config.ChainID)
case config.IsBerlin(blockNumber):