mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
wip
This commit is contained in:
parent
f345a12c76
commit
9125186590
@ -9,7 +9,7 @@
|
||||
# This env var is a shortcut for a set of Ocean network component endpoints.
|
||||
#
|
||||
# Possible values: pacific, nile, duero, spree
|
||||
REACT_APP_OCEAN_NETWORK=spree
|
||||
REACT_APP_OCEAN_NETWORK=pacific
|
||||
|
||||
#
|
||||
# APP CONFIG
|
||||
|
@ -43,7 +43,7 @@ export function NetworkSwitcher() {
|
||||
return
|
||||
}
|
||||
|
||||
return !isBurner ? null : (
|
||||
return (
|
||||
<div
|
||||
ref={node}
|
||||
className={`${styles.networkListWrapper} ${
|
||||
|
@ -20,6 +20,8 @@ export default class Web3message extends PureComponent<{ extended?: boolean }> {
|
||||
private Message = () => {
|
||||
const { networkMatch, network } = this.context
|
||||
|
||||
console.log(networkMatch)
|
||||
|
||||
return (
|
||||
<User.Consumer>
|
||||
{user => (
|
||||
|
@ -82,6 +82,8 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> {
|
||||
const metamaskProvider = new MetamaskProvider()
|
||||
await metamaskProvider.startLogin()
|
||||
const web3 = metamaskProvider.getProvider()
|
||||
console.log(web3.currentProvider)
|
||||
console.log(web3)
|
||||
this.setState(
|
||||
{
|
||||
isLogged: true,
|
||||
@ -260,7 +262,9 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> {
|
||||
if (ocean.keeper) {
|
||||
network = await ocean.keeper.getNetworkName()
|
||||
}
|
||||
network !== this.state.network && this.setState({ network })
|
||||
if (network !== this.state.network) {
|
||||
this.setState({ network })
|
||||
}
|
||||
console.log(await ocean.keeper.getNetworkName())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user