Update urls
This commit is contained in:
@@ -182,7 +182,7 @@ export const AccountDialog = ({
|
|||||||
</Flex>
|
</Flex>
|
||||||
<Flex css={{ marginLeft: "auto" }}>
|
<Flex css={{ marginLeft: "auto" }}>
|
||||||
<a
|
<a
|
||||||
href={`https://hooks-testnet-explorer.xrpl-labs.com/${activeAccount?.address}`}
|
href={`https://${process.env.NEXT_PUBLIC_EXPLORER_URL}/${activeAccount?.address}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
>
|
>
|
||||||
@@ -282,7 +282,7 @@ const Accounts: FC<AccountProps> = (props) => {
|
|||||||
let fetchAccountInfoInterval: NodeJS.Timer;
|
let fetchAccountInfoInterval: NodeJS.Timer;
|
||||||
if (snap.clientStatus === "online") {
|
if (snap.clientStatus === "online") {
|
||||||
fetchAccInfo();
|
fetchAccInfo();
|
||||||
fetchAccountInfoInterval = setInterval(() => fetchAccInfo(), 2000);
|
fetchAccountInfoInterval = setInterval(() => fetchAccInfo(), 2500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default async function handler(
|
|||||||
return res.status(405).json({ error: 'Method not allowed!' })
|
return res.status(405).json({ error: 'Method not allowed!' })
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const response = await fetch('https://hooks-testnet-v2.xrpl-labs.com/newcreds', { method: 'POST' });
|
const response = await fetch(`https://${process.env.NEXT_PUBLIC_TESTNET_URL}/newcreds`, { method: 'POST' });
|
||||||
const json: Faucet | ErrorResponse = await response.json();
|
const json: Faucet | ErrorResponse = await response.json();
|
||||||
if ("error" in json) {
|
if ("error" in json) {
|
||||||
return res.status(429).json(json)
|
return res.status(429).json(json)
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ const state = proxy<IState>({
|
|||||||
logs: [],
|
logs: [],
|
||||||
});
|
});
|
||||||
// Initialize socket connection
|
// Initialize socket connection
|
||||||
const client = new XrplClient(process.env.NEXT_PUBLIC_TESTNET_URL);
|
const client = new XrplClient(`wss://${process.env.NEXT_PUBLIC_TESTNET_URL}`);
|
||||||
|
|
||||||
client.on("online", () => {
|
client.on("online", () => {
|
||||||
state.client = ref(client);
|
state.client = ref(client);
|
||||||
|
|||||||
Reference in New Issue
Block a user