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

withdrawMultiple, darknodeBalances #45

Merged
merged 10 commits into from May 6, 2019
Merged

withdrawMultiple, darknodeBalances #45

merged 10 commits into from May 6, 2019

Conversation

0x31
Copy link
Contributor

@0x31 0x31 commented Apr 26, 2019

Description

This PR adds two functions to the Darknode Payments contract: withdrawMultiple and darknodeBalances.

Motivation

withdrawMultiple: This allows users to withdraw multiple tokens with a single transaction.
darknodeBalances: This allows retriving darknode reward balances without having to know about the store.

migrations/1_deploy_contracts.js Outdated Show resolved Hide resolved
migrations/1_deploy_contracts.js Outdated Show resolved Hide resolved
test-ts/DarknodePayment.ts Outdated Show resolved Hide resolved
await linkedList.insertBefore(NODE1, NULL).should.not.be.rejected;
await linkedList.remove(NULL).should.not.be.rejected;
await linkedList.insertBefore(NODE1, NULL);
await linkedList.remove(NULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are the non-rejection assertions removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are they useful? It throws anyway, and it still doesn't give the line number.

Copy link
Contributor

Choose a reason for hiding this comment

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

What's the motivation for removing them? I feel like the test is much clearer if there is an assertion.

@0x31 0x31 merged commit a3d5bbb into master May 6, 2019
@0x31 0x31 deleted the withdraw-multiple branch May 6, 2019 06:31
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.

None yet

3 participants