From 9babef30bca1c0a15ca65db54c5efffc3130352a Mon Sep 17 00:00:00 2001 From: byterose <77129089+byterose@users.noreply.github.com> Date: Tue, 27 Jul 2021 16:09:13 +0200 Subject: [PATCH] Change disconnect function name --- src/web3-store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web3-store.js b/src/web3-store.js index a34e48b..cb96449 100644 --- a/src/web3-store.js +++ b/src/web3-store.js @@ -82,7 +82,7 @@ export const createStore = () => { })) } - const disconnect = async (provider) => { + const close = async (provider) => { if(provider && provider.disconnect) { await provider.disconnect() } @@ -95,7 +95,7 @@ export const createStore = () => { return { setBrowserProvider, setProvider, - disconnect, + close, subscribe } }