Skip to content

Commit

Permalink
fix(spokepool client): hasCCTPTokenBridge (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris authored Apr 30, 2024
1 parent 87bc32a commit 734d596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clients/SpokePoolClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 734d596

Please sign in to comment.