1
0
mirror of https://github.com/oceanprotocol/react.git synced 2024-11-26 20:39:02 +01:00

correct config on connect

This commit is contained in:
mihaisc 2020-08-06 16:45:50 +03:00
parent 56a9531f3e
commit 0498e3ae75

View File

@ -105,8 +105,8 @@ function OceanProvider({
setChainId(chainId)
Logger.log('chain id ', chainId)
config.web3Provider = web3
const ocean = await Ocean.getInstance(config)
newConfig.web3Provider = web3
const ocean = await Ocean.getInstance(newConfig)
setOcean(ocean)
Logger.log('Ocean instance created.', ocean)