Skip to content

Commit 2c983ee

Browse files
lint
1 parent 8a88efa commit 2c983ee

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

packages/thirdweb/src/react/core/hooks/transaction/useSendAndConfirmTransaction.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ type SendAndConfirmTransactionConfig = {
5656
*/
5757
export function useSendAndConfirmTransaction(
5858
config: SendAndConfirmTransactionConfig = {},
59-
): UseMutationResult<TransactionReceipt, Error, SendTransactionOptions["transaction"]> {
59+
): UseMutationResult<
60+
TransactionReceipt,
61+
Error,
62+
SendTransactionOptions["transaction"]
63+
> {
6064
const account = useActiveAccount();
6165
const { gasless } = config;
6266
return useMutation({

packages/thirdweb/src/react/core/hooks/transaction/useSendBatchTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type UseMutationResult, useMutation } from "@tanstack/react-query";
22
import { sendBatchTransaction } from "../../../../transaction/actions/send-batch-transaction.js";
3-
import type { WaitForReceiptOptions } from "../../../../transaction/actions/wait-for-tx-receipt.js";
43
import type { SendTransactionOptions } from "../../../../transaction/actions/send-transaction.js";
4+
import type { WaitForReceiptOptions } from "../../../../transaction/actions/wait-for-tx-receipt.js";
55
import { useActiveAccount } from "../wallets/useActiveAccount.js";
66

77
/**

packages/thirdweb/src/react/core/hooks/transaction/useSendTransaction.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import type { BuyWithFiatStatus } from "../../../../pay/buyWithFiat/getStatus.js
99
import type { PurchaseData } from "../../../../pay/types.js";
1010
import type { FiatProvider } from "../../../../pay/utils/commonTypes.js";
1111
import type { GaslessOptions } from "../../../../transaction/actions/gasless/types.js";
12-
import { sendTransaction, type SendTransactionOptions } from "../../../../transaction/actions/send-transaction.js";
12+
import {
13+
type SendTransactionOptions,
14+
sendTransaction,
15+
} from "../../../../transaction/actions/send-transaction.js";
1316
import type { WaitForReceiptOptions } from "../../../../transaction/actions/wait-for-tx-receipt.js";
1417
import type { PreparedTransaction } from "../../../../transaction/prepare-transaction.js";
1518
import { getTransactionGasCost } from "../../../../transaction/utils.js";
@@ -132,7 +135,11 @@ export function useSendTransactionCore(args: {
132135
gasless?: GaslessOptions;
133136
wallet: Wallet | undefined;
134137
switchChain: (chain: Chain) => Promise<void>;
135-
}): UseMutationResult<WaitForReceiptOptions, Error, SendTransactionOptions["transaction"]> {
138+
}): UseMutationResult<
139+
WaitForReceiptOptions,
140+
Error,
141+
SendTransactionOptions["transaction"]
142+
> {
136143
const { showPayModal, gasless, wallet, switchChain } = args;
137144
let _account = wallet?.getAccount();
138145

0 commit comments

Comments
 (0)