diff --git a/src/web3-store.js b/src/web3-store.js index 07123c0..a34e48b 100644 --- a/src/web3-store.js +++ b/src/web3-store.js @@ -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, @@ -95,7 +95,7 @@ export const createStore = () => { return { setBrowserProvider, setProvider, - close, + disconnect, subscribe } }