From 77a9beb2723f80a1bd42aa38e2f9474cd956e9da Mon Sep 17 00:00:00 2001 From: npty Date: Mon, 8 Jul 2024 21:16:33 +0700 Subject: [PATCH] chore: fix rpc urls --- packages/axelar-local-dev-aptos/src/aptosNetworkUtils.ts | 6 +++--- .../axelar-local-dev-multiversx/src/MultiversXRelayer.ts | 2 +- .../src/multiversXNetworkUtils.ts | 4 ++-- packages/axelar-local-dev-near/src/NearNetwork.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/axelar-local-dev-aptos/src/aptosNetworkUtils.ts b/packages/axelar-local-dev-aptos/src/aptosNetworkUtils.ts index 7b0f6d45..f8879ee2 100644 --- a/packages/axelar-local-dev-aptos/src/aptosNetworkUtils.ts +++ b/packages/axelar-local-dev-aptos/src/aptosNetworkUtils.ts @@ -9,8 +9,8 @@ export interface AptosNetworkConfig { } export async function createAptosNetwork(config?: AptosNetworkConfig): Promise { - const nodeUrl = config?.nodeUrl || 'http://localhost:8080'; - const faucetUrl = config?.faucetUrl || 'http://localhost:8081'; + const nodeUrl = config?.nodeUrl || 'http://127.0.0.1:8080'; + const faucetUrl = config?.faucetUrl || 'http://127.0.0.1:8081'; const loadingAptosNetwork = new AptosNetwork(nodeUrl); // fund the account with faucet @@ -40,6 +40,6 @@ export async function createAptosNetwork(config?: AptosNetworkConfig): Promise { const configFile = getMultiversXConfig(); - const gatewayUrl = config?.gatewayUrl || 'http://localhost:7950'; + const gatewayUrl = config?.gatewayUrl || 'http://127.0.0.1:7950'; const loadingMultiversXNetwork = new MultiversXNetwork( gatewayUrl, configFile?.axelarGatewayAddress, @@ -85,7 +85,7 @@ export async function createMultiversXNetwork(config?: MultiversXNetworkConfig): } export async function loadMultiversXNetwork( - gatewayUrl = 'http://localhost:7950', + gatewayUrl = 'http://127.0.0.1:7950', ) { const configFile = getMultiversXConfig(); diff --git a/packages/axelar-local-dev-near/src/NearNetwork.ts b/packages/axelar-local-dev-near/src/NearNetwork.ts index 72b96bb7..cc970cd2 100644 --- a/packages/axelar-local-dev-near/src/NearNetwork.ts +++ b/packages/axelar-local-dev-near/src/NearNetwork.ts @@ -211,7 +211,7 @@ export class NearNetwork extends Worker { port, rm: false, refDir: null, - rpcAddr: `http://localhost:${port}`, + rpcAddr: `http://127.0.0.1:${port}`, }; } @@ -244,6 +244,6 @@ export class NearNetwork extends Worker { } private get rpcAddr(): string { - return `http://localhost:${this.config.port}`; + return `http://127.0.0.1:${this.config.port}`; } }