Skip to content

Commit

Permalink
Change disconnect function name
Browse files Browse the repository at this point in the history
  • Loading branch information
byterose authored Jul 27, 2021
1 parent b63294d commit 9babef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web3-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const createStore = () => {
}))
}

const disconnect = async (provider) => {
const close = async (provider) => {
if(provider && provider.disconnect) {
await provider.disconnect()
}
Expand All @@ -95,7 +95,7 @@ export const createStore = () => {
return {
setBrowserProvider,
setProvider,
disconnect,
close,
subscribe
}
}
Expand Down

0 comments on commit 9babef3

Please sign in to comment.