From c16808c8bcb3b16a0fe2274b94a03c417606e14a Mon Sep 17 00:00:00 2001 From: noooblien Date: Mon, 3 Jun 2024 14:21:29 +0530 Subject: [PATCH 1/2] Remove chain identifier restrictions in EVM The chain identifier restrictions in EVM where it only supported Evmos chain identifiers (9000 or 9001) have been removed. This allows for greater flexibility when setting the EIP155ChainID field in the keeper struct. --- x/evm/keeper/keeper.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index c0beffd..2700b90 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -126,10 +126,6 @@ func (k *Keeper) WithChainID(ctx sdk.Context) { panic("chain id already set") } - if !(chainID.Cmp(big.NewInt(9001)) == 0 || chainID.Cmp(big.NewInt(9000)) == 0) { - panic("EVM only supports Evmos chain identifiers (9000 or 9001)") - } - k.eip155ChainID = chainID } From e8e188b8da7001d07ed495b8db59aa40a1f35d76 Mon Sep 17 00:00:00 2001 From: noooblien Date: Mon, 3 Jun 2024 15:12:47 +0530 Subject: [PATCH 2/2] Remove chain identifier restrictions in EVM The chain identifier restrictions in EVM where it only supported Evmos chain identifiers (9000 or 9001) have been removed. This allows for greater flexibility when setting the EIP155ChainID field in the keeper struct. --- x/evm/keeper/keeper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index 2700b90..e04de0d 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -127,6 +127,7 @@ func (k *Keeper) WithChainID(ctx sdk.Context) { } k.eip155ChainID = chainID + } // ChainID returns the EIP155 chain ID for the EVM context