Skip to content

Commit

Permalink
Block evm field in cosmos version of sei chain
Browse files Browse the repository at this point in the history
  • Loading branch information
delivan committed Jul 27, 2024
1 parent a630117 commit d24ea80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d24ea80

Please sign in to comment.