Fix logging when explorer URL not present (#2082)

### Description

Logs the signer address when explorer url is not present
pull/2084/head
Asa Oines 2 years ago committed by GitHub
parent d4a6dc0e7b
commit 1df5ac7cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      typescript/sdk/src/deploy/HyperlaneDeployer.ts

@ -74,7 +74,9 @@ export abstract class HyperlaneDeployer<
const signerUrl = await this.multiProvider.tryGetExplorerAddressUrl(
chain,
);
this.logger(`Deploying to ${chain} from ${signerUrl}`);
const signerAddress = await this.multiProvider.getSignerAddress(chain);
const fromString = signerUrl || signerAddress;
this.logger(`Deploying to ${chain} from ${fromString}`);
this.startingBlockNumbers[chain] = await this.multiProvider
.getProvider(chain)
.getBlockNumber();

Loading…
Cancel
Save