Skip to content

Instantly share code, notes, and snippets.

@atvanguard
Created November 3, 2018 18:27
Show Gist options
  • Save atvanguard/d02c462c60f5b91ca4969d46c6644927 to your computer and use it in GitHub Desktop.
Save atvanguard/d02c462c60f5b91ca4969d46c6644927 to your computer and use it in GitHub Desktop.
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