Skip to content

Add regression test for key balance read returning zero for address with no buys #369

@Chucks1093

Description

@Chucks1093

Summary
A valid wallet address that has never bought keys for a creator should return a zero balance rather than an error or null. A regression test for this state confirms the balance read handles uninitialized holders gracefully.

Scope

  • add a regression test that reads the key balance for a wallet address that has never purchased keys
  • assert the returned balance is zero
  • assert no error is produced for the uninitialized address

Acceptance Criteria

  • a key balance read for an address with no buys returns zero
  • no error is produced for the uninitialized address
  • the test uses a distinct address that has not interacted with the contract

Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg

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