We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f2845c commit 55016aeCopy full SHA for 55016ae
sdk/route/src/automatic.ts
@@ -160,6 +160,13 @@ export class NttAutomaticRoute<N extends Network>
160
ntt: params.normalizedParams.sourceContracts,
161
});
162
163
+ if (!(await ntt.isRelayingAvailable(toChain.chain))) {
164
+ return {
165
+ success: false,
166
+ error: new Error(`Relaying to chain ${toChain.chain} is not available`),
167
+ };
168
+ }
169
+
170
const deliveryPrice = await ntt.quoteDeliveryPrice(
171
toChain.chain,
172
params.normalizedParams.options
0 commit comments