ERROR in marketplace recipe
giux78 opened this issue · 1 comments
giux78 commented
Following the marketplace recipe and calling the functions below for marketplace module I get the error: Error: cannot estimate gas; transaction may fail or may require manual gas limit
market.createDirectListing({
assetContractAddress: nftCollectionModuleAddress,
buyoutPricePerToken: ethers.utils.parseUnits(tokenIdOffer, 18),
currencyContractAddress: tokenModuleAddress,
startTimeInSeconds: Math.floor(Date.now() / 1000),
listingDurationInSeconds: 60 * 60 * 24,
tokenId: tokenId,
quantity: 1,
});
joaquim-verges commented
sorry for the late reply @giux78 !
When you get a contract error like that, it usually tells you the reason in the reason
field in the error (can be a bit buried in there). What do you get for the reason
field?