Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/adding require failure messages #265

Merged
merged 13 commits into from Sep 11, 2019

Removing old await logic

  • Loading branch information
Freydal committed Sep 9, 2019
commit 45f1b62385ae8cdf851da4b0ab76a058f8eef242
@@ -262,20 +262,17 @@ export class TestHelpers {
}

public async cleanAccounts(): Promise<void> {
const transactions = [];
for (const account of this.accounts) {
await this.clearTreasury(account);
if (account !== this.accounts[0]) {
await this.ensureTokenBalance(account, TestValues.zero);
}
transactions.push(
this.migratedContracts.kosuToken.approve.awaitTransactionSuccessAsync(
this.migratedContracts.treasury.address,
TestValues.zero,
{
from: account,
},
),
await this.migratedContracts.kosuToken.approve.awaitTransactionSuccessAsync(
this.migratedContracts.treasury.address,
TestValues.zero,
{
from: account,
},
);
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.