diff --git a/src/App.tsx b/src/App.tsx index 6575bc9..3943188 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,7 +9,7 @@ import { useLocalStorage, useHotkeys } from '@mantine/hooks' import AppShellExample from './components/AppShell' import { AlephiumWalletProvider } from '@alephium/web3-react' -import { NetworkId } from '@alephium/web3' +import { useNetworkId } from './utils/utils' function App() { const [colorScheme, setColorScheme] = useLocalStorage({ @@ -18,11 +18,7 @@ function App() { getInitialValueInEffect: true, }) - const [network] = useLocalStorage({ - key: 'alephium-network', - defaultValue: 'mainnet', - getInitialValueInEffect: true, - }) + const [network] = useNetworkId() const toggleColorScheme = (value?: ColorScheme) => setColorScheme(value || (colorScheme === 'dark' ? 'light' : 'dark')) diff --git a/src/components/Multisig/BuildMultiSigTx.tsx b/src/components/Multisig/BuildMultiSigTx.tsx index 36b423b..86cd5d6 100644 --- a/src/components/Multisig/BuildMultiSigTx.tsx +++ b/src/components/Multisig/BuildMultiSigTx.tsx @@ -125,8 +125,6 @@ function BuildMultisigTx() { }) if (hasError) throw new Error(`Invalid signatures`) - // const nodeProvider = web3.getCurrentNodeProvider() - const nodeProvider = new NodeProvider('http://127.0.0.1:22973') const submitTxResult = await submitMultisigTx( nodeProvider, form.values.multisig,