This PR does some cleanup on how the server and the frontend get information about the PoPA contract:
Add a symlink to the truffle artifact of the PoPA contract (and exclude that artifact from the .gitignore)
Use always the same networkId in the start-testrpc script (since the truffle artifact is being tracked, is useful to have always the same network id so that the networks object is not modified each time ganache is restarted and the contracts are deployed).
Use the symlinked artifact to get the ABI of the contract (the address of the contract is still obtained from the env variable).
Remove the ABI variable from .env.example
Remove utils/deploy_contract.js (actually I removed the whole directory, since nothing is used there) and remove the deploy-contract npm script.
After this is merged, I will do a fresh clone of the repo, try to start the app and update the README to reflect the things that we changed this last week.
This PR does some cleanup on how the server and the frontend get information about the PoPA contract:
.gitignore
)networkId
in thestart-testrpc
script (since the truffle artifact is being tracked, is useful to have always the same network id so that thenetworks
object is not modified each time ganache is restarted and the contracts are deployed)..env.example
utils/deploy_contract.js
(actually I removed the whole directory, since nothing is used there) and remove thedeploy-contract
npm script.After this is merged, I will do a fresh clone of the repo, try to start the app and update the README to reflect the things that we changed this last week.