Skip to content

Commit 281a6ea

Browse files
authored
fix: evm commands should not load altvm chains (#7187)
1 parent 5847e5d commit 281a6ea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

typescript/cli/src/context/strategies/chain/MultiChainResolver.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class MultiChainResolver implements ChainResolver {
140140
private async resolveRelayerChains(
141141
argv: Record<string, any>,
142142
): Promise<ChainName[]> {
143-
const { multiProvider, supportedProtocols } = argv.context;
143+
const { multiProvider } = argv.context;
144144
const chains = new Set<ChainName>();
145145

146146
if (argv.origin) {
@@ -158,12 +158,13 @@ export class MultiChainResolver implements ChainResolver {
158158
return Array.from(new Set([...chains, ...additionalChains]));
159159
}
160160

161-
// If no destination is specified, return all EVM and AltVM chains
161+
// If no destination is specified, return all EVM chains only
162162
if (!argv.destination) {
163163
const chains = multiProvider.getKnownChainNames();
164164

165-
return chains.filter((chain: string) =>
166-
supportedProtocols.includes(multiProvider.getProtocol(chain)),
165+
return chains.filter(
166+
(chain: string) =>
167+
ProtocolType.Ethereum === multiProvider.getProtocol(chain),
167168
);
168169
}
169170

0 commit comments

Comments
 (0)