Skip to content

Commit cefbbd6

Browse files
committed
test: fix flaky test
1 parent 83109d6 commit cefbbd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/thirdweb/src/extensions/erc1155/write/sigMint1155.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { sendAndConfirmTransaction } from "src/exports/thirdweb.js";
12
import { maxUint256 } from "viem";
23
import { beforeAll, describe, expect, it } from "vitest";
34
import { ANVIL_CHAIN } from "../../../../test/src/chains.js";
@@ -11,7 +12,6 @@ import {
1112
type ThirdwebContract,
1213
getContract,
1314
} from "../../../contract/contract.js";
14-
import { sendTransaction } from "../../../transaction/actions/send-transaction.js";
1515
import { toHex } from "../../../utils/encoding/hex.js";
1616
import { deployERC20Contract } from "../../prebuilts/deploy-erc20.js";
1717
import { deployERC1155Contract } from "../../prebuilts/deploy-erc1155.js";
@@ -76,7 +76,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("generateMintSignature1155", () => {
7676
payload,
7777
signature,
7878
});
79-
const { transactionHash } = await sendTransaction({
79+
const { transactionHash } = await sendAndConfirmTransaction({
8080
transaction,
8181
account: TEST_ACCOUNT_A,
8282
});
@@ -107,7 +107,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("generateMintSignature1155", () => {
107107
payload,
108108
signature,
109109
});
110-
const { transactionHash } = await sendTransaction({
110+
const { transactionHash } = await sendAndConfirmTransaction({
111111
transaction,
112112
account: TEST_ACCOUNT_A,
113113
});
@@ -153,7 +153,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("generateMintSignature1155", () => {
153153
payload,
154154
signature,
155155
});
156-
const { transactionHash } = await sendTransaction({
156+
const { transactionHash } = await sendAndConfirmTransaction({
157157
transaction,
158158
account: TEST_ACCOUNT_A,
159159
});

0 commit comments

Comments
 (0)