Skip to content

Commit

Permalink
More network update
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Aug 24, 2023
1 parent 7774601 commit 5987fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ColorScheme>({
Expand All @@ -18,11 +18,7 @@ function App() {
getInitialValueInEffect: true,
})

const [network] = useLocalStorage<NetworkId>({
key: 'alephium-network',
defaultValue: 'mainnet',
getInitialValueInEffect: true,
})
const [network] = useNetworkId()

const toggleColorScheme = (value?: ColorScheme) =>
setColorScheme(value || (colorScheme === 'dark' ? 'light' : 'dark'))
Expand Down
2 changes: 0 additions & 2 deletions src/components/Multisig/BuildMultiSigTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5987fbd

Please sign in to comment.