Browse Source

Fix deploy

develop
Ezerous 4 years ago
parent
commit
ccd0c3ffd2
  1. 6
      packages/concordia-contracts/migrations/2_deploy_contracts.js
  2. 2
      packages/concordia-contracts/package.json
  3. 4
      packages/concordia-contracts/test/TestVoting.sol
  4. 8
      yarn.lock

6
packages/concordia-contracts/migrations/2_deploy_contracts.js

@ -4,8 +4,8 @@ const PostVoting = artifacts.require('PostVoting');
// eslint-disable-next-line func-names // eslint-disable-next-line func-names
module.exports = function (deployer) { module.exports = function (deployer) {
deployer.deploy(Forum).then((forum) => { deployer.deploy(Forum).then(async (forum) => {
deployer.deploy(Voting, forum.address); await deployer.deploy(Voting, forum.address);
deployer.deploy(PostVoting, forum.address); await deployer.deploy(PostVoting, forum.address);
}); });
}; };

2
packages/concordia-contracts/package.json

@ -14,7 +14,7 @@
}, },
"dependencies": { "dependencies": {
"@openzeppelin/contracts": "~3.2.0", "@openzeppelin/contracts": "~3.2.0",
"truffle": "~5.1.45" "truffle": "~5.1.55"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^6.8.0", "eslint": "^6.8.0",

4
packages/concordia-contracts/test/TestVoting.sol

@ -17,10 +17,10 @@ contract TestVoting {
(firstTopicId,) = forum.createTopic(); (firstTopicId,) = forum.createTopic();
} }
function testIsPollExistent() public { function testIfPollExists() public {
Voting voting = Voting(DeployedAddresses.Voting()); Voting voting = Voting(DeployedAddresses.Voting());
bool actual = voting.isPollExistent(firstTopicId); bool actual = voting.pollExists(firstTopicId);
Assert.equal(actual, false, "Poll should not exist"); Assert.equal(actual, false, "Poll should not exist");
} }

8
yarn.lock

@ -16347,10 +16347,10 @@ tr46@^1.0.1:
dependencies: dependencies:
punycode "^2.1.0" punycode "^2.1.0"
truffle@~5.1.45: truffle@~5.1.55:
version "5.1.53" version "5.1.55"
resolved "https://registry.yarnpkg.com/truffle/-/truffle-5.1.53.tgz#3c984317d092f230d84b7d138d69dace106b5c2b" resolved "https://registry.yarnpkg.com/truffle/-/truffle-5.1.55.tgz#ec5e245213e4f0f42ef836308b50a8d79355a649"
integrity sha512-JXuuhPOsh/K9K9PJTcZDRy6ByxreOrchMIM1SgEVRi85MF6XWQSZwwV1kXF+JRtP938lfRmmpgWQb1MzFBY7qw== integrity sha512-chZM43DOo7aCn+z1Pcj5f4ts9YqnHhKI31CZ+B6N93nbWKnIrBN/hBZeEXSi9s9FZ3nsmp+Iplr5Z4dnHAqDxA==
dependencies: dependencies:
app-module-path "^2.2.0" app-module-path "^2.2.0"
mocha "8.1.2" mocha "8.1.2"

Loading…
Cancel
Save