aragon / aragon-react-kit-boilerplate

React boilerplate for Aragon applications
Other
17 stars 10 forks source link

App.sol should be named properly to CounterApp.sol or the correct contract name in the default deploy_contracts migration #4

Closed ottodevs closed 6 years ago

ottodevs commented 6 years ago

https://github.com/aragon/aragon-react-kit-boilerplate/blob/2619f240238e814d4f3ddb00ff21ce83dc0a0ea7/migrations/2_deploy_contracts.js#L1

Rename at least App.sol occurrences to CounterApp:

var App = artifacts.require('./CounterApp.sol')

module.exports = function (deployer) {
  deployer.deploy(App)
}

To reproduce the error just follow the Readme.MD instructions to init a new project and try to run: npm run test An error message about App.sol not found will raise without fixing the contract name.

ottodevs commented 6 years ago

I think to the solution is applying this same commit here: https://github.com/aragon/aragon-react-boilerplate/commit/c888748038e6e3bd7121642b38b12f580d4200fd