File tree Expand file tree Collapse file tree 2 files changed +15
-20
lines changed
apps/playground-web/src/components/pay
packages/thirdweb/src/react/core/hooks Expand file tree Collapse file tree 2 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -40,25 +40,20 @@ export function PayTransactionPreview() {
40
40
} ) ;
41
41
42
42
return (
43
- < >
44
- < StyledConnectButton />
45
- < div className = "h-10" />
46
- { account && (
47
- < TransactionWidget
48
- client = { THIRDWEB_CLIENT }
49
- theme = { theme === "light" ? "light" : "dark" }
50
- transaction = { claimTo ( {
51
- contract : nftContract ,
52
- quantity : 1n ,
53
- tokenId : 2n ,
54
- to : account ?. address || "" ,
55
- } ) }
56
- title = { nft ?. metadata ?. name }
57
- description = { nft ?. metadata ?. description }
58
- image = { nft ?. metadata ?. image }
59
- />
60
- ) }
61
- </ >
43
+ < TransactionWidget
44
+ client = { THIRDWEB_CLIENT }
45
+ theme = { theme === "light" ? "light" : "dark" }
46
+ transaction = { claimTo ( {
47
+ contract : nftContract ,
48
+ quantity : 1n ,
49
+ tokenId : 2n ,
50
+ to : account ?. address || "" ,
51
+ } ) }
52
+ amount = { 100n }
53
+ title = { nft ?. metadata ?. name }
54
+ description = { nft ?. metadata ?. description }
55
+ image = { nft ?. metadata ?. image }
56
+ />
62
57
) ;
63
58
}
64
59
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function useTransactionDetails({
57
57
"transaction-details" ,
58
58
transaction . to ,
59
59
transaction . chain . id ,
60
- transaction . erc20Value ,
60
+ transaction . erc20Value ?. toString ( ) ,
61
61
] ,
62
62
queryFn : async ( ) : Promise < TransactionDetails > => {
63
63
// Create contract instance for metadata fetching
You can’t perform that action at this time.
0 commit comments