Skip to content

Commit ea02e6c

Browse files
comments
1 parent d956b92 commit ea02e6c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { type UseMutationResult, useMutation } from "@tanstack/react-query";
22
import { trackPayEvent } from "../../../../analytics/track/pay.js";
33
import * as Bridge from "../../../../bridge/index.js";
44
import type { Chain } from "../../../../chains/types.js";
5-
import { getChainMetadata } from "../../../../chains/utils.js";
65
import type { BuyWithCryptoStatus } from "../../../../pay/buyWithCrypto/getStatus.js";
76
import type { BuyWithFiatStatus } from "../../../../pay/buyWithFiat/getStatus.js";
87
import type { FiatProvider } from "../../../../pay/utils/commonTypes.js";
@@ -181,10 +180,9 @@ export function useSendTransactionCore(args: {
181180

182181
(async () => {
183182
try {
184-
const [_nativeValue, _erc20Value, _chainMeta] = await Promise.all([
183+
const [_nativeValue, _erc20Value] = await Promise.all([
185184
resolvePromisedValue(tx.value),
186185
resolvePromisedValue(tx.erc20Value),
187-
getChainMetadata(tx.chain),
188186
]);
189187

190188
const nativeValue = _nativeValue || 0n;

packages/thirdweb/src/react/web/ui/TransactionButton/DepositScreen.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ export function DepositScreen(props: {
134134
window.open(`https://thirdweb.com/${props.tx.chain.id}`);
135135
};
136136

137-
// TODO poll for receied funds, then enable the continue button
138-
139137
return (
140138
<Container p="lg">
141139
<ModalHeader title={"Insufficient funds"} onBack={props.onBack} />

0 commit comments

Comments
 (0)