We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f32a96 commit 8bd526fCopy full SHA for 8bd526f
wormhole-connect/src/routes/sdkv2/route.ts
@@ -357,13 +357,17 @@ const isNttSupportedToken = async (
357
const route: SDKv2Route | undefined = config.routes.get(routeName);
358
if (!route) return false;
359
360
- const destTokens = await route.rc.supportedDestinationTokens(
361
- token,
362
- fromContext,
363
- toContext,
364
- );
365
-
366
- return destTokens.length > 0;
+ try {
+ const destTokens = await route.rc.supportedDestinationTokens(
+ token,
+ fromContext,
+ toContext,
+ );
+
367
+ return destTokens.length > 0;
368
+ } catch (e) {
369
+ return false;
370
+ }
371
};
372
373
const [isManualSupported, isAutomaticSupported, isM0Supported] =
0 commit comments