{"action":"created","issue":{"url":"https://api.github.com/repos/poanetwork/poa-test-setup/issues/27","repository_url":"https://api.github.com/repos/poanetwork/poa-test-setup","labels_url":"https://api.github.com/repos/poanetwork/poa-test-setup/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/poanetwork/poa-test-setup/issues/27/comments","events_url":"https://api.github.com/repos/poanetwork/poa-test-setup/issues/27/events","html_url":"https://github.com/poanetwork/poa-test-setup/issues/27","id":322494088,"number":27,"title":"(Fix) Validators DApp shows an error when MetaMask is not installed","user":{"login":"phahulin","id":2278876,"avatar_url":"https://avatars0.githubusercontent.com/u/2278876?v=4","gravatar_id":"","url":"https://api.github.com/users/phahulin","html_url":"https://github.com/phahulin","followers_url":"https://api.github.com/users/phahulin/followers","following_url":"https://api.github.com/users/phahulin/following{/other_user}","gists_url":"https://api.github.com/users/phahulin/gists{/gist_id}","starred_url":"https://api.github.com/users/phahulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phahulin/subscriptions","organizations_url":"https://api.github.com/users/phahulin/orgs","repos_url":"https://api.github.com/users/phahulin/repos","events_url":"https://api.github.com/users/phahulin/events{/privacy}","received_events_url":"https://api.github.com/users/phahulin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-12T08:35:09Z","updated_at":"2018-05-13T07:00:44Z","closed_at":null,"author_association":"NONE","body":"Validators DApp on http://localhost:3001/ loads with error:\r\n\r\n```\r\nUnhandled Rejection (Error): Couldn't decode bytes32 from ABI: 0x The size doesn't match.\r\n▶ 44 stack frames were collapsed.\r\nMetadata._callee3$\r\nsrc/contracts/Metadata.contract.js:81\r\n  78 |   return {};\r\n  79 | }\r\n  80 | \r\n> 81 | let validatorData = await this.metadataInstance.methods.validators(miningKey).call();\r\n  82 | let createdDate = validatorData.createdDate > 0 ? moment.unix(validatorData.createdDate).format('YYYY-MM-DD') : ''\r\n  83 | let updatedDate = validatorData.updatedDate > 0 ? moment.unix(validatorData.updatedDate).format('YYYY-MM-DD') : ''\r\n  84 | let expirationDate = validatorData.expirationDate > 0 ? moment.unix(validatorData.expirationDate).format('YYYY-MM-DD') : ''\r\nView compiled\r\n▶ 7 stack frames were collapsed.\r\nMetadata._callee5$\r\nsrc/contracts/Metadata.contract.js:116\r\n  113 | \r\n  114 | async getAllValidatorsData(netId){\r\n  115 |   let all = [];\r\n> 116 |   return new Promise(async(resolve, reject) => {\r\n  117 |     const poaInstance = new PoaConsensus()\r\n  118 |     await poaInstance.init({web3: this.web3_10, netId, addresses: this.addresses})\r\n  119 |     const keys = await poaInstance.getValidators()\r\n```\r\n\r\nSteps to reproduce:\r\n```\r\nnpm install\r\nnpm run start-moc-setup\r\nnpm run launch-dapps\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/poanetwork/poa-test-setup/issues/comments/388605996","html_url":"https://github.com/poanetwork/poa-test-setup/issues/27#issuecomment-388605996","issue_url":"https://api.github.com/repos/poanetwork/poa-test-setup/issues/27","id":388605996,"user":{"login":"varasev","id":33550681,"avatar_url":"https://avatars1.githubusercontent.com/u/33550681?v=4","gravatar_id":"","url":"https://api.github.com/users/varasev","html_url":"https://github.com/varasev","followers_url":"https://api.github.com/users/varasev/followers","following_url":"https://api.github.com/users/varasev/following{/other_user}","gists_url":"https://api.github.com/users/varasev/gists{/gist_id}","starred_url":"https://api.github.com/users/varasev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varasev/subscriptions","organizations_url":"https://api.github.com/users/varasev/orgs","repos_url":"https://api.github.com/users/varasev/repos","events_url":"https://api.github.com/users/varasev/events{/privacy}","received_events_url":"https://api.github.com/users/varasev/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T07:00:44Z","updated_at":"2018-05-13T07:00:44Z","author_association":"MEMBER","body":"I've tested it again. Everything is fine. All the steps of `poa-test-setup` are successful.\r\n\r\nThe right steps to follow to see that MetaMask successfully connects to DApps:\r\n\r\n1. Install MetaMask if it is not already installed.\r\n\r\n2. Perform the next commands:\r\n\r\n```bash\r\n$ git clone https://github.com/poanetwork/poa-test-setup.git\r\n$ cd poa-test-setup\r\n$ npm i\r\n$ npm run start-moc-setup\r\n$ npm run launch-dapps\r\n```\r\n\r\n3. After the previous steps are completed switch MetaMask to `Localhost 8545`.\r\n\r\n4. Open any of the next pages in a browser:\r\n\r\nCeremony DApp: http://localhost:3000\r\nValidators DApp: http://localhost:3001\r\nGovernance DApp: http://localhost:3002"}}
{"actor":{"display_login":"varasev"}}