dappuniversity / election

A Decentralized Ethereum Voting Application Tutorial
563 stars 506 forks source link

Delayed Render #24

Closed officialfrancismendoza closed 5 years ago

officialfrancismendoza commented 5 years ago

Anyone else encounter a scenario where the candidates do not render the first time when the UI is displayed, but upon refreshing, the candidates finally appear? image

officialfrancismendoza commented 5 years ago

If you are encountering this error, first check if the fields that constitute your candidate are valid. Any values not picked up by app.js properly will not be displayed in the website

Ensure that there are no other processes you added that are running within app.js that could slow down the render function

My issue seems to be nondeterministic, as candidates finally load after an unknown number of refreshes. However, if you are using the Ganache testing framework, this somehow could be responsible for a nonce mismatch that practically eliminates your ability to successfully execute a transaction

To fix the nonce mismatch issue, uninstall and then reinstall Ganache. I hope this is patched in the next release.