mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +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