Skip to content

Commit

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

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

0 comments on commit b63294d

Please sign in to comment.