Hello. We use openzeppelin extensively in our project, and currently have 2 contracts in our
I’m attempting to add a third contract (PublicLock.sol) to the project. Running
openzeppelin add PublicLock works as expected, adding it to the
project.json. I’m also able to successfully run
openzeppelin push --network development --force, as there is a selfdestruct operation in
PublicLock.sol(I’m aware of the risks of this)
However, testing is not working.
We run our tests with truffle, via an npm script “test” (
cross-env NODE_ENV=test truffle test --network development), but as soon as I add the new contract to the oz project, I can’t run tests anymore. The error is:
Error: One or more contracts have validation errors. Please review the items listed above and fix them, or run this command again with the --force option. at NetworkController.<anonymous> (/Users/overlord/DAPPS/unlock/smart-contracts/node_modules/@openzeppelin/cli/src/models/network/NetworkController.ts:135:13) at Generator.next (<anonymous>) at /Users/overlord/DAPPS/unlock/smart-contracts/node_modules/@openzeppelin/cli/lib/models/network/NetworkController.js:8:71 at new Promise (<anonymous>) at __awaiter (/Users/overlord/DAPPS/unlock/smart-contracts/node_modules/@openzeppelin/cli/lib/models/network/NetworkController.js:4:12) at NetworkController.push (/Users/overlord/DAPPS/unlock/smart-contracts/node_modules/@openzeppelin/cli/lib/models/network/NetworkController.js:93:16) at /Users/overlord/DAPPS/unlock/smart-contracts/node_modules/@openzeppelin/cli/src/scripts/push.ts:21:22 at Generator.next (<anonymous>) at /Users/overlord/DAPPS/unlock/smart-contracts/node_modules/@openzeppelin/cli/lib/scripts/push.js:8:71 at new Promise (<anonymous>) at __awaiter (/Users/overlord/DAPPS/unlock/smart-contracts/node_modules/@openzeppelin/cli/lib/scripts/push.js:4:12) at push (/Users/overlord/DAPPS/unlock/smart-contracts/node_modules/@openzeppelin/cli/lib/scripts/push.js:18:12) at zosDeploy (/Users/overlord/DAPPS/unlock/smart-contracts/migrations/2_deploy_unlock.js:12:9) at deployUnlock (/Users/overlord/DAPPS/unlock/smart-contracts/migrations/2_deploy_unlock.js:24:9) at process._tickCallback (internal/process/next_tick.js:68:7) Truffle v5.1.8 (core: 5.1.8) Node v10.15.0 error Command failed with exit code 1.
Using the --force flag changes nothing.
Any thoughts on how I can proceed here?
Thanks in advance.