From e7642725201ee38ed246af5d47b8edbfc98a49ec Mon Sep 17 00:00:00 2001 From: Christophe Le Bars Date: Tue, 3 Aug 2021 16:39:26 +0200 Subject: [PATCH] typo compat --- src/web3-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web3-store.js b/src/web3-store.js index cb96449..5365b35 100644 --- a/src/web3-store.js +++ b/src/web3-store.js @@ -41,7 +41,7 @@ export const createStore = () => { if (getWindowEthereum()) getWindowEthereum().autoRefreshOnNetworkChange = false } - const setProvider = async (provider, callback?) => { + const setProvider = async (provider, callback) => { init() const instance = new Web3(provider) const chainId = await instance.eth.getChainId()