MCPcopy Index your code
hub / github.com/Shmoji/web3-react-example / disconnect

Function disconnect

pages/index.js:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 async function disconnect() {
18 try {
19 deactivate()
20 localStorage.setItem('isWalletConnected', false)
21 } catch (ex) {
22 console.log(ex)
23 }
24 }
25
26 useEffect(() => {
27 const connectWalletOnPageLoad = async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected