Skip to content

Commit 6c5363c

Browse files
committed
cli: continue on clone error
1 parent a9d07e8 commit 6c5363c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

cli/src/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,14 @@ yargs(hideBin(process.argv))
594594
continue;
595595
}
596596
const address: UniversalAddress = peer.address.address.toUniversalAddress()
597-
const [peerConfig, _ctx, peerNtt] = await pullChainConfig(network, { chain: c, address }, overrides);
598-
ntts[c] = peerNtt as any;
599-
configs[c] = peerConfig;
597+
try {
598+
const [peerConfig, _ctx, peerNtt] = await pullChainConfig(network, { chain: c, address }, overrides);
599+
ntts[c] = peerNtt as any;
600+
configs[c] = peerConfig;
601+
} catch (e) {
602+
console.error(`Failed to pull config for ${c}:`, e);
603+
continue;
604+
}
600605
}
601606

602607
// sort chains by name

evm/ts/src/ntt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ export class EvmNtt<N extends Network, C extends EvmChains>
427427
return abiVersion;
428428
} catch (e) {
429429
console.error(
430-
`Failed to get NTT_MANAGER_VERSION from contract ${contracts.ntt?.manager}`
430+
`Failed to get NTT_MANAGER_VERSION from contract ${contracts.ntt?.manager} on ${(await provider.getNetwork()).name}`
431431
);
432432
throw e;
433433
}

0 commit comments

Comments
 (0)