Skip to content

Commit

Permalink
remove duplicate assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
cfanbo committed Jan 8, 2025
1 parent 16068f8 commit c9b812a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions basics/favorites/native/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ test('Set the favorite pda and cross-check the updated data', async () => {
tx.feePayer = payer.publicKey;
tx.recentBlockhash = blockhash
tx.sign(payer)
tx.recentBlockhash = blockhash;
await client.processTransaction(tx);

const account = await client.getAccount(favoritesPda);
Expand Down Expand Up @@ -132,7 +131,6 @@ test('Set the favorite pda and cross-check the updated data', async () => {
tx.feePayer = payer.publicKey;
tx.recentBlockhash = blockhash
tx.sign(payer)
tx.recentBlockhash = blockhash;
try {
await client.processTransaction(tx)
console.error("Expected the test to fail")
Expand Down Expand Up @@ -161,7 +159,6 @@ test('Set the favorite pda and cross-check the updated data', async () => {
tx1.feePayer = payer.publicKey;
tx1.recentBlockhash = blockhash
tx1.sign(payer)
tx1.recentBlockhash = blockhash;
await client.processTransaction(tx1)


Expand All @@ -180,7 +177,6 @@ test('Set the favorite pda and cross-check the updated data', async () => {
tx.feePayer = payer.publicKey;
tx.recentBlockhash = blockhash
tx.sign(payer)
tx.recentBlockhash = blockhash;
await client.processTransaction(tx);
})
})

0 comments on commit c9b812a

Please sign in to comment.