Skip to content

Commit bf78cc9

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

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
@@ -11,12 +11,12 @@ import {
1111
type ThirdwebContract,
1212
getContract,
1313
} from "../../../contract/contract.js";
14-
import { sendTransaction } from "../../../transaction/actions/send-transaction.js";
1514
import { toHex } from "../../../utils/encoding/hex.js";
1615
import { deployERC20Contract } from "../../prebuilts/deploy-erc20.js";
1716
import { deployERC1155Contract } from "../../prebuilts/deploy-erc1155.js";
1817
import { getNFT } from "../read/getNFT.js";
1918
import { generateMintSignature, mintWithSignature } from "./sigMint.js";
19+
import { sendAndConfirmTransaction } from "src/exports/thirdweb.js";
2020

2121
// skip this test suite if there is no secret key available to test with
2222
// TODO: remove reliance on secret key during unit tests entirely
@@ -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)