diff --git a/src/App.js b/src/App.js index 4209d5c..742088a 100644 --- a/src/App.js +++ b/src/App.js @@ -42,7 +42,7 @@ class App extends Component { await this.keysManager.init({ web3: web3Config.web3Instance, netId: web3Config.netId, - addresses, + addresses }); this.setState({ isDisabledBtn: false, @@ -99,7 +99,7 @@ class App extends Component { } async onClick() { this.setState({loading:true}); - const initialKey = window.web3.eth.defaultAccount; + const initialKey = this.state.web3Config.defaultAccount; let isValid try { isValid = await this.keysManager.isInitialKeyValid(initialKey); diff --git a/src/Footer.js b/src/Footer.js index 7ba7fb1..c84350f 100644 --- a/src/Footer.js +++ b/src/Footer.js @@ -1,9 +1,10 @@ import React from "react"; import moment from "moment"; -import helpers from "./helpers"; +import { constants } from "./constants"; const Footer = ({netId}) => { - const footerClassName = helpers.isTestnet(netId) ? "sokol" : ""; + const footerClassName = netId in constants.NETWORKS && constants.NETWORKS[netId].TESTNET ? "sokol" : ""; + return (