What does this pull request do? Explain your changes. (required)
This PR adds a fundDepositAndReserveFor() function to the TicketBroker. This function contains the same logic as fundDepositAndReserve() except it uses the msg.value provided by msg.sender to fund the deposit and reserve for the specified address. This function is required for finalizing the migration on L2 for a TicketBroker sender with a deposit and reserve on L1 [1].
What does this pull request do? Explain your changes. (required)
This PR adds a
fundDepositAndReserveFor()
function to the TicketBroker. This function contains the same logic asfundDepositAndReserve()
except it uses the msg.value provided by msg.sender to fund the deposit and reserve for the specified address. This function is required for finalizing the migration on L2 for a TicketBroker sender with a deposit and reserve on L1 [1].[1] See https://github.com/livepeer/arbitrum-lpt-bridge/pull/30
Specific updates (required)
fundDepositAndReserveFor()
in TicketBrokerfundDepositAndReserve()
in TicketBroker to usefundDepositAndReserveFor()
under the hoodHow did you test each of these updates (required)
Updated unit tests.
Does this pull request close any open issues?
Fixes #502
Checklist:
yarn test
pass