From 6899739a4b5d20be0de344d0364c2608c030e089 Mon Sep 17 00:00:00 2001 From: yuliferna Date: Thu, 11 Jan 2024 09:48:59 -0400 Subject: [PATCH] fix prettier and rpc links --- src/hooks/useHandleTransfer.tsx | 4 +++- src/utils/consts.ts | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hooks/useHandleTransfer.tsx b/src/hooks/useHandleTransfer.tsx index a74066637..46cc32f7e 100644 --- a/src/hooks/useHandleTransfer.tsx +++ b/src/hooks/useHandleTransfer.tsx @@ -279,7 +279,9 @@ async function aptos( transferAmountParsed.toString(), recipientChain, additionalPayload?.receivingContract || recipientAddress, - additionalPayload?.payload ? undefined : createNonce().readUInt32LE(0).toString(), + additionalPayload?.payload + ? undefined + : createNonce().readUInt32LE(0).toString(), additionalPayload?.payload ); diff --git a/src/utils/consts.ts b/src/utils/consts.ts index d7dfaf3b9..b8c7c3b05 100644 --- a/src/utils/consts.ts +++ b/src/utils/consts.ts @@ -617,15 +617,13 @@ export const getExplorerName = (chainId: ChainId) => export const WORMHOLE_RPC_HOSTS = CLUSTER === "mainnet" ? [ - "https://wormhole-v2-mainnet-api.certus.one", - "https://wormhole.inotel.ro", + "https://api.wormholescan.io", // Explorer offers a guardian equivalent endpoint for fetching VAAs "https://wormhole-v2-mainnet-api.mcf.rocks", "https://wormhole-v2-mainnet-api.chainlayer.network", "https://wormhole-v2-mainnet-api.staking.fund", - "https://wormhole-v2-mainnet.01node.com", ] : CLUSTER === "testnet" - ? ["https://wormhole-v2-testnet-api.certus.one"] + ? ["https://api.testnet.wormholescan.io"] : ["http://localhost:7071"]; export const ETH_NETWORK_CHAIN_ID = CLUSTER === "mainnet" ? 1 : CLUSTER === "testnet" ? 5 : 1337;