Created
November 3, 2018 18:27
-
-
Save atvanguard/d02c462c60f5b91ca4969d46c6644927 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const LiquidDemocracy = artifacts.require("LiquidDemocracy"); | |
contract('LiquidDemocracy', function(accounts) { | |
it('propose-vote-delegate', async function() { | |
let instance = await LiquidDemocracy.deployed(); | |
let txs = [ | |
instance.newProposal('proposal 0'), | |
instance.newProposal('proposal 1'), | |
instance.newProposal('proposal 2') | |
]; | |
for (let i = 1; i < 10; i++) { | |
txs.push(instance.addVoter(accounts[i])) | |
} | |
await Promise.all(txs); | |
... | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment