Fix linter errors

This commit is contained in:
Jackson Jessup 2022-12-05 17:38:27 -05:00
parent 66ca377c6d
commit 6803ce2f50
1 changed files with 4 additions and 4 deletions

View File

@ -323,11 +323,11 @@ export class AggregatorAccount extends Account<types.AggregatorAccountData> {
payerTokenAccount
);
if (payerTokenAccountInfo === null) {
const [payerTokenAddress, payerTokenInitTxn] =
const createPayerTokenWallet =
await this.program.mint.getOrCreateWrappedUserInstructions(payer, {
amount: 0,
});
txns.unshift(payerTokenInitTxn);
txns.unshift(createPayerTokenWallet[1]);
}
// withdraw from lease
@ -348,7 +348,7 @@ export class AggregatorAccount extends Account<types.AggregatorAccountData> {
}
// create lease for the new queue and transfer existing balance
const [leaseAccount, leaseInitTxn] = await LeaseAccount.createInstructions(
const leaseInit = await LeaseAccount.createInstructions(
this.program,
payer,
{
@ -363,7 +363,7 @@ export class AggregatorAccount extends Account<types.AggregatorAccountData> {
),
}
);
txns.push(leaseInitTxn);
txns.push(leaseInit[1]);
// push onto crank
if (params.crankPubkey) {