Skip to content

Commit dfe29f0

Browse files
committed
lint
1 parent 8112650 commit dfe29f0

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

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

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -42,49 +42,49 @@ import { hasSponsoredTransactionsEnabled } from "../../utils/wallet.js";
4242
*/
4343
export type SendTransactionPayModalConfig =
4444
| {
45-
metadata?: {
46-
name?: string;
47-
image?: string;
48-
};
49-
locale?: LocaleId;
50-
supportedTokens?: SupportedTokens;
51-
theme?: Theme | "light" | "dark";
52-
buyWithCrypto?:
53-
| false
54-
| {
55-
testMode?: boolean;
56-
};
57-
buyWithFiat?:
58-
| false
59-
| {
60-
prefillSource?: {
61-
currency?: "USD" | "CAD" | "GBP" | "EUR" | "JPY";
45+
metadata?: {
46+
name?: string;
47+
image?: string;
6248
};
63-
testMode?: boolean;
64-
preferredProvider?: FiatProvider;
65-
};
66-
purchaseData?: object;
67-
/**
68-
* Callback to be called when the user successfully completes the purchase.
69-
*/
70-
onPurchaseSuccess?: (
71-
info:
49+
locale?: LocaleId;
50+
supportedTokens?: SupportedTokens;
51+
theme?: Theme | "light" | "dark";
52+
buyWithCrypto?:
53+
| false
7254
| {
73-
type: "crypto";
74-
status: BuyWithCryptoStatus;
75-
}
55+
testMode?: boolean;
56+
};
57+
buyWithFiat?:
58+
| false
7659
| {
77-
type: "fiat";
78-
status: BuyWithFiatStatus;
79-
}
80-
| {
81-
type: "transaction";
82-
chainId: number;
83-
transactionHash: Hex;
84-
},
85-
) => void;
86-
showThirdwebBranding?: boolean;
87-
}
60+
prefillSource?: {
61+
currency?: "USD" | "CAD" | "GBP" | "EUR" | "JPY";
62+
};
63+
testMode?: boolean;
64+
preferredProvider?: FiatProvider;
65+
};
66+
purchaseData?: object;
67+
/**
68+
* Callback to be called when the user successfully completes the purchase.
69+
*/
70+
onPurchaseSuccess?: (
71+
info:
72+
| {
73+
type: "crypto";
74+
status: BuyWithCryptoStatus;
75+
}
76+
| {
77+
type: "fiat";
78+
status: BuyWithFiatStatus;
79+
}
80+
| {
81+
type: "transaction";
82+
chainId: number;
83+
transactionHash: Hex;
84+
},
85+
) => void;
86+
showThirdwebBranding?: boolean;
87+
}
8888
| false;
8989

9090
/**
@@ -236,11 +236,11 @@ export function useSendTransactionCore(args: {
236236
}),
237237
_erc20Value?.tokenAddress
238238
? getTokenBalance({
239-
client: tx.client,
240-
account,
241-
chain: tx.chain,
242-
tokenAddress: _erc20Value.tokenAddress,
243-
})
239+
client: tx.client,
240+
account,
241+
chain: tx.chain,
242+
tokenAddress: _erc20Value.tokenAddress,
243+
})
244244
: undefined,
245245
getTransactionGasCost(tx, account.address),
246246
]);

0 commit comments

Comments
 (0)