Skip to content

Commit c996e9e

Browse files
committed
solana: Remove explicit commitment
1 parent 0d6fe1f commit c996e9e

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

solana/tests/anchor.test.ts

+7-16
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,10 @@ describe("example-native-token-transfers", () => {
173173
transaction.feePayer = payer.publicKey;
174174
transaction.recentBlockhash = blockhash;
175175

176-
await anchor.web3.sendAndConfirmTransaction(
177-
connection,
178-
transaction,
179-
[payer, mint],
180-
{
181-
commitment: "confirmed",
182-
}
183-
);
176+
await anchor.web3.sendAndConfirmTransaction(connection, transaction, [
177+
payer,
178+
mint,
179+
]);
184180

185181
tokenAccount = await spl.createAssociatedTokenAccount(
186182
connection,
@@ -307,14 +303,9 @@ describe("example-native-token-transfers", () => {
307303
transaction.recentBlockhash = blockhash;
308304

309305
transaction.sign(payer);
310-
await anchor.web3.sendAndConfirmTransaction(
311-
connection,
312-
transaction,
313-
[payer],
314-
{
315-
commitment: "confirmed",
316-
}
317-
);
306+
await anchor.web3.sendAndConfirmTransaction(connection, transaction, [
307+
payer,
308+
]);
318309
});
319310

320311
test("Can send tokens", async () => {

0 commit comments

Comments
 (0)