Commit db50a7bf authored by kevinflo's avatar kevinflo

page title. fixed contract address

parent c5052a56
{
"DPOSTS": {
"RINKEBY6": "0xec42474bC2Fc05cdddEfA876d17737183FF4e4Fb",
"MAINNET": "0xa633f0DBFD596246c520F87c58548f971D65dc1b"
"MAINNET": "0xa633f0DBFD596246c520F87c58548f971D65dc1b",
"MAINNETOLD": "0x779e432ee590dce3f18837cfe54c0e9e5c69bfb5"
}
}
......@@ -4,7 +4,7 @@ const addresses = require('../addresses.json');
const instance = new web3.eth.Contract(
JSON.parse(Dposts.interface),
addresses.DPOSTS.RINKEBY6
addresses.DPOSTS.MAINNET
);
export default instance;
......@@ -7,7 +7,7 @@ if (typeof window !== 'undefined' && typeof window.web3 !== 'undefined') {
web3 = new Web3(window.web3.currentProvider);
web3.isServer = false;
} else {
const provider = new Web3.providers.HttpProvider(INFURA_RINKEBY);
const provider = new Web3.providers.HttpProvider(INFURA_MAINNET);
web3 = new Web3(provider);
web3.isServer = true;
}
......
This diff is collapsed.
......@@ -98,6 +98,7 @@ class BoardCard extends Component {
render() {
const loading = this.state.loading;
const published = !!this.state.urlStr;
console.log("THISSTATE1", this.state)
const currentUserCreated =
this.props.accounts.length && this.props.accounts[0] === this.state.owner;
......
......@@ -19,6 +19,7 @@ export default class MyDocument extends Document {
crossOrigin="anonymous"
/>
<link rel="stylesheet" href="/_next/static/style.css" />
<title>Decentralized Posts</title>
</Head>
<body>
<Main />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment