Skip to content

Commit efa781c

Browse files
author
jdcaballerov
committed
Add auth signature
1 parent 2aa251e commit efa781c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

auction-house/js/test/account-instructions.auction-house.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,13 @@ test('test auction-house instructions', async (t) => {
200200
const deposit_instruction = createDepositInstruction(depositAccounts, deposit_args);
201201
const deposit_tx = new Transaction().add(deposit_instruction);
202202
deposit_tx.recentBlockhash = (await connection.getRecentBlockhash()).blockhash;
203-
/*const txId = */ await transactionHandler.sendAndConfirmTransaction(deposit_tx, [wallet], {
204-
skipPreflight: false,
205-
});
203+
/*const txId = */ await transactionHandler.sendAndConfirmTransaction(
204+
deposit_tx,
205+
[wallet, authority],
206+
{
207+
skipPreflight: false,
208+
},
209+
);
206210

207211
const deposit_fee_paid = (await connection.getFeeForMessage(deposit_tx.compileMessage())).value;
208212
const wallet_sol_post_balance = await connection.getBalance(wallet.publicKey);
@@ -238,7 +242,7 @@ test('test auction-house instructions', async (t) => {
238242
const withdraw_instruction = createWithdrawInstruction(withdrawAccounts, withdraw_args);
239243
const withdraw_tx = new Transaction().add(withdraw_instruction);
240244
withdraw_tx.recentBlockhash = (await connection.getRecentBlockhash()).blockhash;
241-
await transactionHandler.sendAndConfirmTransaction(withdraw_tx, [wallet], {
245+
await transactionHandler.sendAndConfirmTransaction(withdraw_tx, [wallet, authority], {
242246
skipPreflight: false,
243247
});
244248

0 commit comments

Comments
 (0)