From 1df5ac7cfe1a3ae1a74cdd0c9d87835bd7a7cf60 Mon Sep 17 00:00:00 2001 From: Asa Oines Date: Mon, 10 Apr 2023 15:11:41 -0400 Subject: [PATCH] Fix logging when explorer URL not present (#2082) ### Description Logs the signer address when explorer url is not present --- typescript/sdk/src/deploy/HyperlaneDeployer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typescript/sdk/src/deploy/HyperlaneDeployer.ts b/typescript/sdk/src/deploy/HyperlaneDeployer.ts index 7aad49e26..4ee4acc9e 100644 --- a/typescript/sdk/src/deploy/HyperlaneDeployer.ts +++ b/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();