Skip to content

Commit

Permalink
feat: Revise the authorization count verification logic to compare th…
Browse files Browse the repository at this point in the history
…e total number of listings with the authorization count on a per-collection basis.
  • Loading branch information
Jecket1 committed Aug 1, 2024
1 parent 77ee219 commit ee94475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contract/Forest/ForestContract_Sellers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee94475

Please sign in to comment.