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()