From b63294d45a180754ea96c2807f8ed98458c9672f Mon Sep 17 00:00:00 2001 From: byterose <77129089+byterose@users.noreply.github.com> Date: Mon, 26 Jul 2021 16:53:59 +0200 Subject: [PATCH] Change __close__ method to __disconnect__ --- src/web3-store.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } }