mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
add pacific in ocean networks, asset
This commit is contained in:
parent
0ef8a88d30
commit
d7dadfb291
@ -24,7 +24,7 @@ script:
|
|||||||
- export REACT_APP_BRIZO_ADDRESS="0x008c25ed3594e094db4592f4115d5fa74c4f41ea"
|
- export REACT_APP_BRIZO_ADDRESS="0x008c25ed3594e094db4592f4115d5fa74c4f41ea"
|
||||||
- export CYPRESS_NODE_URI=REACT_APP_NODE_URI
|
- export CYPRESS_NODE_URI=REACT_APP_NODE_URI
|
||||||
- export CYPRESS_SEEDPHRASE="taxi music thumb unique chat sand crew more leg another off lamp"
|
- export CYPRESS_SEEDPHRASE="taxi music thumb unique chat sand crew more leg another off lamp"
|
||||||
- export CYPRESS_CONSUME_ASSET="http://localhost:3000/asset/did:op:d64dd31f8d2a4fc0987fedc7a2e4a07be049b9b814434b61989ab0e3a1a443e1"
|
- export CYPRESS_CONSUME_ASSET="http://localhost:3000/asset/did:op:f5530ed7f4e3413db2dc223ab20e802c119ca24ac26d471497a4ac317fb6e667"
|
||||||
- ./scripts/test.sh
|
- ./scripts/test.sh
|
||||||
- ./scripts/coverage.sh
|
- ./scripts/coverage.sh
|
||||||
- ./scripts/build.sh
|
- ./scripts/build.sh
|
||||||
|
@ -151,13 +151,15 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> {
|
|||||||
let isOceanNetwork
|
let isOceanNetwork
|
||||||
|
|
||||||
await window.web3.eth.net.getId((err, netId) => {
|
await window.web3.eth.net.getId((err, netId) => {
|
||||||
|
console.log(netId)
|
||||||
if (err) return
|
if (err) return
|
||||||
|
|
||||||
const isNile = netId === 8995
|
const isNile = netId === 8995
|
||||||
const isDuero = netId === 2199
|
const isDuero = netId === 2199
|
||||||
const isSpree = netId === 8996
|
const isSpree = netId === 8996
|
||||||
|
const isPacific = netId === 846353
|
||||||
|
|
||||||
isOceanNetwork = isNile || isDuero || isSpree
|
isOceanNetwork = isNile || isDuero || isSpree || isPacific
|
||||||
|
|
||||||
const network = isNile
|
const network = isNile
|
||||||
? 'Nile'
|
? 'Nile'
|
||||||
|
Loading…
Reference in New Issue
Block a user