We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33c23e7 commit 259151cCopy full SHA for 259151c
packages/thirdweb/src/extensions/marketplace/direct-listings/write/buyFromListing.ts
@@ -66,6 +66,12 @@ export function buyFromListing(
66
? listing.pricePerToken * options.quantity
67
: 0n,
68
extraGas: 50_000n, // add extra gas to account for router call
69
+ erc20Value: isNativeTokenAddress(listing.currencyContractAddress)
70
+ ? undefined
71
+ : {
72
+ amountWei: listing.pricePerToken * options.quantity,
73
+ tokenAddress: listing.currencyContractAddress,
74
+ },
75
},
76
};
77
0 commit comments