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

Change changeBalance matcher type #363

Merged
merged 1 commit into from
Sep 22, 2020
Merged

Conversation

duckception
Copy link
Contributor

No description provided.

return Promise.all(signers.map((signer) => getAddressOf(signer)));
}

async function getBalanceOf(account: Signer | Contract) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract to common file


export function supportChangeBalances(Assertion: Chai.AssertionStatic) {
Assertion.addMethod('changeBalances', function (
this: any,
signers: Signer[],
signers: (Signer | Contract)[],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract common type Account?

@@ -0,0 +1,19 @@
import {Contract, Signer} from 'ethers';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rename file to misc/account.ts

@duckception duckception force-pushed the contract-balance-matcher branch 2 times, most recently from 0c52818 to ccdd132 Compare September 22, 2020 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants