From d24ea80a783870725f987ab272985e479dfbec0e Mon Sep 17 00:00:00 2001 From: delivan Date: Sat, 27 Jul 2024 16:50:35 +0900 Subject: [PATCH] Block evm field in cosmos version of sei chain --- src/validate.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/validate.ts b/src/validate.ts index 96fba6c13..626340c39 100644 --- a/src/validate.ts +++ b/src/validate.ts @@ -99,6 +99,12 @@ export const validateCosmosChainInfo = async ( ); if (chainInfo.evm) { + if (chainInfo.evm.chainId === 1329) { + throw new Error( + "Cannot set `evm` field for Sei chain. There is a config of EVM version of Sei chain in /evm/eip155:1329.json", + ); + } + await checkEvmRpcConnectivity(chainInfo.evm.chainId, chainInfo.evm.rpc); }