diff --git a/package.json b/package.json index b32f586..8b49fba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ans-resolver", - "version": "0.0.4", + "version": "0.0.5", "description": "HTTP resolver for ANS domains", "main": "./src/api.js", "type": "module", diff --git a/src/utils/constants.js b/src/utils/constants.js index 5e9c1e4..31a1282 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -1 +1 @@ -export const ANS_CONTRACT_ADDRESS = `EcSNZ9aaZkK7OngLqunLvDPp0CNc2JBVqwBRrFewZnU`; +export const ANS_CONTRACT_ADDRESS = `rExhMDVqLfSTdSCwG95_VOe2a3MuKGA0ukGPO0ra9GQ`; diff --git a/src/utils/readContract.js b/src/utils/readContract.js index a8b996e..6da3fc9 100644 --- a/src/utils/readContract.js +++ b/src/utils/readContract.js @@ -4,7 +4,7 @@ import { ANS_CONTRACT_ADDRESS } from "./constants.js"; export async function readContract() { try { const state = ( - await axios.get(`https://api.exm.dev/read/${ANS_CONTRACT_ADDRESS}`) + await axios.get(`https://api.mem.tech/api/state/${ANS_CONTRACT_ADDRESS}`) )?.data; return state?.balances; } catch (error) {