Skip to content

Commit

Permalink
fix circle attestation url
Browse files Browse the repository at this point in the history
this shouldnt be cached at evaluation time
  • Loading branch information
artursapek committed Mar 11, 2024
1 parent 48c555f commit 299c3de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wormhole-connect/src/routes/cctpManual/utils/attestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import config from 'config';
import { BytesLike } from 'ethers';
import { sleep } from 'utils';

const CIRCLE_ATTESTATION = config.isMainnet
? 'https://iris-api.circle.com/attestations/'
: 'https://iris-api-sandbox.circle.com/attestations/';

export async function getCircleAttestation(messageHash: BytesLike) {
while (true) {
// get the post
Expand All @@ -23,6 +19,10 @@ export async function getCircleAttestation(messageHash: BytesLike) {
export async function tryGetCircleAttestation(
messageHash: BytesLike,
): Promise<string | undefined> {
const CIRCLE_ATTESTATION = config.isMainnet
? 'https://iris-api.circle.com/attestations/'
: 'https://iris-api-sandbox.circle.com/attestations/';

return await axios
.get(`${CIRCLE_ATTESTATION}${messageHash}`)
.catch((reason) => {
Expand Down

0 comments on commit 299c3de

Please sign in to comment.