Skip to content

Add integration test confirming creator supply increments by exactly one on each successful buy #578

Description

@Chucks1093

Summary

Each successful buy should increment the creator's key supply by exactly one. An integration test should perform three sequential buys and assert the supply after each one to confirm no off-by-one errors exist in the supply tracking logic.

Scope

  • Start from a creator with supply 0
  • Perform three sequential buy transactions, each for 1 key
  • Assert supply is 1, 2, and 3 after each respective buy
  • Assert a failed buy (insufficient funds) does not increment the supply

Acceptance Criteria

  • Supply increments by 1 after each successful buy
  • Supply correct after 1, 2, and 3 sequential buys
  • Failed buy leaves supply unchanged
  • Supply reads performed with query_supply read-only function

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions