Skip to content

Commit a675f08

Browse files
committed
fix: include erc20 value in docs
1 parent 8ec1bf5 commit a675f08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/thirdweb/src/react/web/hooks/transaction/useSendTransaction.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ import { TransactionModal } from "../../ui/TransactionButton/TransactionModal.js
8383
* value: toWei("0.1"),
8484
* chain: sepolia,
8585
* client: thirdwebClient,
86+
* // Specify a token required for the transaction
87+
* erc20Value: {
88+
* amountWei: toWei("0.1"),
89+
* tokenAddress: "0x...",
90+
* },
8691
* });
8792
* sendTx(transaction);
8893
* };

0 commit comments

Comments
 (0)