Don't throw on chain connection issues (#1056)

pull/1061/head
Trevor Porter 2 years ago committed by GitHub
parent 3f8557d426
commit 8a03b10332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      typescript/infra/scripts/funding/fund-keys-from-deployer.ts

@ -307,7 +307,14 @@ class ContextFunder {
key: BaseCloudAgentKey,
chain: ChainName,
): Promise<boolean> {
const chainConnection = this.multiProvider.getChainConnection(chain);
const chainConnection = this.multiProvider.tryGetChainConnection(chain);
if (!chainConnection) {
error('Cannot get chain connection', {
chain,
});
// Consider this an error, but don't throw and prevent all future funding attempts
return true;
}
const desiredBalance = desiredBalancePerChain[chain];
let failureOccurred = false;

Loading…
Cancel
Save