diff --git a/connect/src/circle-api.ts b/connect/src/circle-api.ts index 698b215fcd..4331ab88e7 100644 --- a/connect/src/circle-api.ts +++ b/connect/src/circle-api.ts @@ -33,6 +33,8 @@ export async function getCircleAttestation( const attestation = mapCircleAttestation(response?.data); return attestation.message === "PENDING" ? null : attestation.message; } catch (error) { + // This is a 404 error, which means the attestation is not yet available + // since its not available yet, we return null signaling it can be tried again if (!(axios.isAxiosError(error) && error?.response?.status === 404)) { return null; } diff --git a/connect/src/protocols/tokenTransfer.ts b/connect/src/protocols/tokenTransfer.ts index 3fdd5b6972..93be127e54 100644 --- a/connect/src/protocols/tokenTransfer.ts +++ b/connect/src/protocols/tokenTransfer.ts @@ -19,7 +19,6 @@ import { AttestationId, } from "../wormholeTransfer"; import { Wormhole } from "../wormhole"; -import { ChainName, PlatformName } from "@wormhole-foundation/sdk-base"; import { retry } from "./retry"; import { signSendWait } from "./common"; diff --git a/connect/src/wormhole.ts b/connect/src/wormhole.ts index 0060d7cbf8..7e4861ef89 100644 --- a/connect/src/wormhole.ts +++ b/connect/src/wormhole.ts @@ -2,7 +2,6 @@ import { PlatformName, ChainName, Network, - toChainId, isCircleSupported, isCircleChain, usdcContract, @@ -25,7 +24,6 @@ import { isTokenId, PayloadLiteral, } from "@wormhole-foundation/sdk-definitions"; -import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; import { WormholeConfig } from "./types";