Skip to content

Add regression test for holder count unchanged after a failed buy due to supply cap exceeded #476

Description

@Chucks1093

Summary

When a buy reverts because it would exceed the creator's supply cap, the holder count must remain unchanged. A new wallet that did not previously hold keys should not be added to the holder count just because a buy attempt was made and reverted.

Scope

  • Register a creator with a supply cap of 10
  • Buy 10 keys to reach the cap with one wallet
  • Attempt a buy from a second wallet and assert it reverts with SupplyCapExceeded
  • Assert holder count is still 1 (only the first wallet)

Acceptance Criteria

  • Holder count unchanged after failed buy due to supply cap
  • Second wallet not added to holders after failed attempt
  • Total supply unchanged after the revert

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions