From ee944750d04e0e03f970a28fd81b1df5ee8f91cf Mon Sep 17 00:00:00 2001 From: theodore Date: Thu, 1 Aug 2024 11:51:32 +0800 Subject: [PATCH] feat: Revise the authorization count verification logic to compare the total number of listings with the authorization count on a per-collection basis. --- contract/Forest/ForestContract_Sellers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contract/Forest/ForestContract_Sellers.cs b/contract/Forest/ForestContract_Sellers.cs index 3e5cd01..c5acd2e 100644 --- a/contract/Forest/ForestContract_Sellers.cs +++ b/contract/Forest/ForestContract_Sellers.cs @@ -126,7 +126,7 @@ public override Empty ListWithFixedPrice(ListWithFixedPriceInput input) var collectionAllowance = State.ListedNFTTotalAmountMap[collectionSymbol][Context.Sender]; if (collectionAllowance == null || collectionAllowance == "") { - var listedNFTTotalAmount = (allowance >= MaxApproveAllowance) ? input.Quantity : Math.Max(allowance, input.Quantity); + var listedNFTTotalAmount = input.Quantity; State.ListedNFTTotalAmountMap[collectionSymbol][Context.Sender] = listedNFTTotalAmount.ToString(); } else