From 734d5961eaf4972cff0c2dadcdc2c90377702f4c Mon Sep 17 00:00:00 2001 From: "James Morris, MS" <96435344+james-a-morris@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:37:45 -0400 Subject: [PATCH] fix(spokepool client): hasCCTPTokenBridge (#641) --- src/clients/SpokePoolClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clients/SpokePoolClient.ts b/src/clients/SpokePoolClient.ts index 4f6c74ce1..2a3808f92 100644 --- a/src/clients/SpokePoolClient.ts +++ b/src/clients/SpokePoolClient.ts @@ -469,7 +469,7 @@ export class SpokePoolClient extends BaseAbstractClient { // Determine if this spoke pool has the capability to bridge UDSC via the CCTP token bridge. // The CCTP bridge is canonically disabled if the `cctpTokenMessenger` is the ZERO address. let hasCCTPBridgingEnabled = false; - if (chainIsCCTPEnabled(this.chainId)) { + if (chainIsCCTPEnabled(this.chainId) && isDefined(this.spokePool.cctpTokenMessenger)) { const cctpBridgeAddress = String( await this.spokePool.cctpTokenMessenger({ blockTag: toBlock,