Skip to content

Commit

Permalink
Add auth signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcaballerov committed Aug 11, 2022
1 parent 2aa251e commit efa781c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions auction-house/js/test/account-instructions.auction-house.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,13 @@ test('test auction-house instructions', async (t) => {
const deposit_instruction = createDepositInstruction(depositAccounts, deposit_args);
const deposit_tx = new Transaction().add(deposit_instruction);
deposit_tx.recentBlockhash = (await connection.getRecentBlockhash()).blockhash;
/*const txId = */ await transactionHandler.sendAndConfirmTransaction(deposit_tx, [wallet], {
skipPreflight: false,
});
/*const txId = */ await transactionHandler.sendAndConfirmTransaction(
deposit_tx,
[wallet, authority],
{
skipPreflight: false,
},
);

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

Expand Down

0 comments on commit efa781c

Please sign in to comment.