mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-14 21:10:38 +01:00
correct config on connect
This commit is contained in:
parent
56a9531f3e
commit
0498e3ae75
@ -105,8 +105,8 @@ function OceanProvider({
|
|||||||
setChainId(chainId)
|
setChainId(chainId)
|
||||||
Logger.log('chain id ', chainId)
|
Logger.log('chain id ', chainId)
|
||||||
|
|
||||||
config.web3Provider = web3
|
newConfig.web3Provider = web3
|
||||||
const ocean = await Ocean.getInstance(config)
|
const ocean = await Ocean.getInstance(newConfig)
|
||||||
setOcean(ocean)
|
setOcean(ocean)
|
||||||
Logger.log('Ocean instance created.', ocean)
|
Logger.log('Ocean instance created.', ocean)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user