Skip to content

Commit

Permalink
chore: fix rpc urls
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Jul 8, 2024
1 parent a986feb commit 77a9beb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/axelar-local-dev-aptos/src/aptosNetworkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export interface AptosNetworkConfig {
}

export async function createAptosNetwork(config?: AptosNetworkConfig): Promise<AptosNetwork> {
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
Expand Down Expand Up @@ -40,6 +40,6 @@ export async function createAptosNetwork(config?: AptosNetworkConfig): Promise<A
return aptosNetwork;
}

export async function loadAptosNetwork(nodeUrl = 'http://localhost:8080') {
export async function loadAptosNetwork(nodeUrl = 'http://127.0.0.1:8080') {
aptosNetwork = new AptosNetwork(nodeUrl);
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class MultiversXRelayer extends Relayer {
super();

this.elasticsearch = new Client({
node: 'http://localhost:9200'
node: 'http://127.0.0.1:9200'
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function getMultiversXConfig(): MultiversXConfig | undefined {
export async function createMultiversXNetwork(config?: MultiversXNetworkConfig): Promise<MultiversXNetwork> {
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,
Expand Down Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions packages/axelar-local-dev-near/src/NearNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
};
}

Expand Down Expand Up @@ -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}`;
}
}

0 comments on commit 77a9beb

Please sign in to comment.