Skip to content

Commit afe1b97

Browse files
Merge pull request #8 from push-protocol/f_push_scan
changed the api base
2 parents 26a37db + af9fa42 commit afe1b97

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

utils/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import axios from 'axios';
55
import { CREDENTIALKEYS } from './constants';
66

77
const API_BASE = 'https://backend.epns.io/apis/v1';
8-
const API_ANODE_BASE = 'https://anode2.push.org/'
8+
const API_ANODE_BASE = 'https://aa1.dev.push.org/';
99

1010
export const login = async ({ user, pass }) => {
1111
try {
@@ -137,4 +137,4 @@ export const getHeathCheck = async () => {
137137
} catch (e) {
138138
console.log('Error occured in health-check', e);
139139
}
140-
};
140+
};

utils/json-rpc.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios';
22

3-
const API_BASE = 'https://anode2.push.org/rpc';
3+
const API_BASE = 'https://aa1.dev.push.org/rpc';
44

55
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
66

@@ -9,7 +9,7 @@ export const makeJsonRpcRequest = async (id, method, params = {}) => {
99
jsonrpc: '2.0',
1010
method: `RpcService.${method}`,
1111
params: params,
12-
id
12+
id,
1313
};
1414

1515
try {
@@ -22,4 +22,4 @@ export const makeJsonRpcRequest = async (id, method, params = {}) => {
2222
} catch (error) {
2323
throw new Error('JSON-RPC Error: ' + error.message);
2424
}
25-
};
25+
};

0 commit comments

Comments
 (0)