update title

This commit is contained in:
Roman Storm 2017-12-15 19:38:51 -08:00
parent 8d84e1902d
commit 028481c6cd
4 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"name": "finalapp",
"version": "0.1.0",
"private": true,
"homepage": "https://rstormsf.github.io/oracles-dapps-keys-generation",
"homepage": "https://oraclesorg.github.io/poa-dapps-keys-generation",
"dependencies": {
"clipboard": "^1.7.1",
"gh-pages": "^1.1.0",
@ -19,7 +19,7 @@
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build -o rstorm",
"deploy": "gh-pages -d build -o origin",
"build-css": "node-sass-chokidar src/index/index.scss -o src/index",
"watch-css": "npm run build-css && node-sass-chokidar src/index/index.scss -o src/index --watch --recursive",
"start-js": "react-scripts start",

3
src/addresses.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = {
KEYS_MANAGER_ADDRESS: '0xfc90125492e58dbfe80c0bfb6a2a759c4f703ca8'
}

View File

@ -46,6 +46,7 @@ let getWeb3 = () => {
netId,
injectedWeb3: true
}
document.title = `${netIdName} - Dapp Keys Generation`
var defaultAccount = web3.eth.defaultAccount || null;
if(defaultAccount === null){
reject({msg: errorMsgNoMetamaskAccount, node: generateElement(errorMsgNoMetamaskAccount)})

View File

@ -1,8 +1,8 @@
import KeysManagerAbi from './keysManagerAbi.json'
import Web3 from 'web3';
import addressGenerator from './addressGenerator';
import {KEYS_MANAGER_ADDRESS} from './addresses'
const KEYS_MANAGER_ADDRESS = '0xfc90125492e58dbfe80c0bfb6a2a759c4f703ca8'
console.log('Keys Manager ', KEYS_MANAGER_ADDRESS)
export default class KeysManager {
constructor(){