mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-13 16:54:53 +01:00
fetching correct network config
This commit is contained in:
parent
30906e63b4
commit
69d0b14903
@ -11,13 +11,12 @@ export function NetworkMonitor() {
|
||||
// temp hack
|
||||
let network = ''
|
||||
switch (chainId) {
|
||||
case 1:
|
||||
{
|
||||
case 1: {
|
||||
network = 'mainnet'
|
||||
}
|
||||
case 4: {
|
||||
network = 'rinkeby'
|
||||
}
|
||||
network = 'rinkeby'
|
||||
}
|
||||
}
|
||||
const config = getOceanConfig(network)
|
||||
connect(config)
|
||||
|
Loading…
Reference in New Issue
Block a user