From f708ef4a1c69c8310de820e4ccdce6ebccc1697a Mon Sep 17 00:00:00 2001 From: Punarv Pawade Date: Sat, 13 Apr 2024 16:55:06 +0530 Subject: [PATCH] fusionSeriesAsset: use quantity from form in listItem --- pages/createFusionSeriesAssets.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/createFusionSeriesAssets.js b/pages/createFusionSeriesAssets.js index 4a0264f..a6c6698 100644 --- a/pages/createFusionSeriesAssets.js +++ b/pages/createFusionSeriesAssets.js @@ -236,7 +236,14 @@ function CreateFusionSeriesNft(props) { let tokenId = value.toNumber(); let forAuction = false; let endTime = 0; - await listItem(fusionSeriesContarct, tokenId, price, forAuction, endTime); + await listItem( + fusionSeriesContarct, + tokenId, + price, + formInput.quantity, + forAuction, + endTime + ); } catch (e) { transactionFailed(); console.log(e); @@ -248,6 +255,7 @@ function CreateFusionSeriesNft(props) { fusionSeriesContarct, tokenId, price, + quantity, forAuction, endTime ) => { @@ -266,7 +274,7 @@ function CreateFusionSeriesNft(props) { contractFusionSeriesAddress, tokenId, price, - 1, + quantity, forAuction, endTime );