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