From 0b8e20dcd80a26353b5a87563004a33c39486f7d Mon Sep 17 00:00:00 2001 From: sven Tan Date: Fri, 6 Dec 2024 22:07:22 +0800 Subject: [PATCH] fix build --- infra/rooch-portal-v2/src/hooks/use-networks.ts | 2 +- infra/rooch-portal-v2/src/sections/faucet/inviter.tsx | 4 ++-- infra/rooch-portal-v2/src/sections/settings/view.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/rooch-portal-v2/src/hooks/use-networks.ts b/infra/rooch-portal-v2/src/hooks/use-networks.ts index 61056f7de3..d45ebd04c2 100644 --- a/infra/rooch-portal-v2/src/hooks/use-networks.ts +++ b/infra/rooch-portal-v2/src/hooks/use-networks.ts @@ -37,7 +37,7 @@ const { networkConfig, useNetworkVariable, useNetworkVariables } = createNetwork mintAddress: ROOCH_MINT_OPERATING_ADDRESS, btcGasAddress: '0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3', gasMarketAddress: '0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e 744c13f2d9998bf76cc3', - faucetUrl: 'http://192.168.31.134', + faucetUrl: FAUCET_TESTNET, faucetAddress: '0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3', faucetObject: '0xd5723eda84f691ae2623da79312c7909b1737c5b3866ecc5dbd6aa21718ff15d', BTCMemPool: 'https://mempool.space/testnet/tx/', diff --git a/infra/rooch-portal-v2/src/sections/faucet/inviter.tsx b/infra/rooch-portal-v2/src/sections/faucet/inviter.tsx index 7117c300dd..394b7bfb31 100644 --- a/infra/rooch-portal-v2/src/sections/faucet/inviter.tsx +++ b/infra/rooch-portal-v2/src/sections/faucet/inviter.tsx @@ -22,8 +22,8 @@ import { DashboardContent } from 'src/layouts/dashboard'; import { toast } from 'src/components/snackbar'; -import { paths } from '../../routes/paths'; import { INVITER_ADDRESS_KEY } from 'src/utils/inviter'; +import { paths } from '../../routes/paths'; const FAUCET_NOT_OPEN = 'Faucet Not Open'; const INVALID_UTXO = 'Invalid UTXO'; @@ -72,7 +72,7 @@ export function InviterFaucetView({ inviterAddress }: { inviterAddress: string } router.push(paths.dashboard.faucet); } - }, [inviter]) + }, [inviter, router]) const { data, isPending, refetch } = useRoochClientQuery( 'getBalance', diff --git a/infra/rooch-portal-v2/src/sections/settings/view.tsx b/infra/rooch-portal-v2/src/sections/settings/view.tsx index 9375d41cbd..00e5414da0 100644 --- a/infra/rooch-portal-v2/src/sections/settings/view.tsx +++ b/infra/rooch-portal-v2/src/sections/settings/view.tsx @@ -26,7 +26,7 @@ import { Iconify } from 'src/components/iconify' import { useNetworkVariable } from '../../hooks/use-networks' import SessionKeysTableCard from './components/session-keys-table-card' import SessionKeyGuardButtonV1 from '../../components/auth/session-key-guard-button-v1' -import { INVITER_ADDRESS_KEY } from 'src/utils/inviter' +import { INVITER_ADDRESS_KEY } from "../../utils/inviter"; export function SettingsView() { const address = useCurrentAddress()