Closed yondonfu closed 2 years ago
How about we add a test case validating this order of events?
and check if the saved/claimed fees is correct.
How about we add a test case validating this order of events?
Added the following test cases in dd72a12:
Will rebase to resolve conflicts after the above commit is reviewed.
What does this pull request do? Explain your changes. (required)
This PR adds support for specifying a recipient address and amount in
withdrawFees()
in the BondingManager. This feature is required for https://github.com/livepeer/protocol/issues/495.This is a breaking change to the
withdrawFees()
function andWithdrawFees()
event API and will require the following updates:withdrawFees()
withdrawFees()
WithdrawFees()
eventThe rationale for this breaking change:
May want to consider updating slimming down the BondingManager and TicketBroker further by removing
*for*
functions in favor of accepting args, but we can consider that after completing the current set of tasks to get to feature complete milestone.Specific updates (required)
See commit history.
How did you test each of these updates (required)
Updated tests.
Does this pull request close any open issues?
Fixes #503
Checklist:
yarn test
pass