tests: contribution: Implement moving curve index

This commit is contained in:
nfnty 2017-06-13 06:44:20 +02:00
parent 6a913f2584
commit ec95dabd79
No known key found for this signature in database
GPG Key ID: 32DD96A5D0370907
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,7 @@ contract("StatusContribution", (accounts) => {
const curves = [
[web3.toWei(3)],
[web3.toWei(13)],
[web3.toWei(8)],
[web3.toWei(15)],
];
const startBlock = 1000000;
@ -185,6 +185,7 @@ contract("StatusContribution", (accounts) => {
curves[1][0],
false,
web3.sha3("pwd1"));
await dynamicCeiling.moveNext();
await statusContribution.setMockedBlockNumber(1005000);
@ -212,6 +213,7 @@ contract("StatusContribution", (accounts) => {
curves[2][0],
true,
web3.sha3("pwd2"));
await dynamicCeiling.moveNext();
await statusContribution.setMockedBlockNumber(1025000);
@ -274,6 +276,7 @@ contract("StatusContribution", (accounts) => {
});
it("Should finalize", async () => {
await statusContribution.setMockedBlockNumber(endBlock + 1);
await statusContribution.finalize();
const totalSupply = await snt.totalSupply();