File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
typescript/cli/src/context/strategies/chain Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments