Skip to content

Commit

Permalink
[tickets] Unlock unmixed account for autobuyer (#3476)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlyp committed May 21, 2021
1 parent 41c7940 commit a70b749
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/actions/ControlActions.js
Expand Up @@ -517,10 +517,13 @@ export const startTicketBuyerV3Attempt = (

try {
const accountNum = account.encrypted ? account.value : null;
const accountUnlocks = mixedAccount
? [accountNum, changeAccount]
: [accountNum];
const ticketBuyer = await dispatch(
unlockAcctAndExecFn(
passphrase,
[accountNum],
accountUnlocks,
() => {
dispatch(setNeedsVSPdProcessTickets(true));
return wallet.startTicketAutoBuyerV3(ticketBuyerService, {
Expand Down

0 comments on commit a70b749

Please sign in to comment.