Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Oct 15, 2023
1 parent 04d6a5b commit f6845b7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions connect/src/circle-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion connect/src/protocols/tokenTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 0 additions & 2 deletions connect/src/wormhole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
PlatformName,
ChainName,
Network,
toChainId,
isCircleSupported,
isCircleChain,
usdcContract,
Expand All @@ -25,7 +24,6 @@ import {
isTokenId,
PayloadLiteral,
} from "@wormhole-foundation/sdk-definitions";
import axios, { AxiosRequestConfig, AxiosResponse } from "axios";

import { WormholeConfig } from "./types";

Expand Down

0 comments on commit f6845b7

Please sign in to comment.