From 2374e9dbab231b5a6e193e4e10f4561974753f42 Mon Sep 17 00:00:00 2001 From: Dogukan Ali Gundogan <59707019+DogukanGun@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:03:47 +0100 Subject: [PATCH] Change the owner to payer --- clients/js/test/withdrawExcess.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/js/test/withdrawExcess.test.ts b/clients/js/test/withdrawExcess.test.ts index 96d6154..c48c41d 100644 --- a/clients/js/test/withdrawExcess.test.ts +++ b/clients/js/test/withdrawExcess.test.ts @@ -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(), ]); @@ -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();