Skip to content

Commit

Permalink
Change the owner to payer
Browse files Browse the repository at this point in the history
  • Loading branch information
DogukanGun committed Nov 14, 2024
1 parent 2791278 commit 2374e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/js/test/withdrawExcess.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test('it withdraws excess lamports from an associated token account', async (t)
const [payer, mintAuthority, owner, destination] = await Promise.all([
generateKeyPairSignerWithSol(client, 200_000_000n),
generateKeyPairSigner(),
generateKeyPairSignerWithSol(client, 200_000_000n),
generateKeyPairSigner(),
generateKeyPairSigner(),
]);

Expand Down Expand Up @@ -84,7 +84,7 @@ test('it withdraws excess lamports from an associated token account', async (t)
destinationAccount: destination.address,
authority: owner,
});
await sendAndConfirmInstructions(client, owner, [withdrawInstruction]);
await sendAndConfirmInstructions(client, payer, [withdrawInstruction]);

// Then: Verify that lamports were successfully withdrawn to the destination
const lamportsAfter = await client.rpc.getBalance(destination.address).send();
Expand Down

0 comments on commit 2374e9d

Please sign in to comment.