Skip to content

Add unit tests for the contract correctly rejecting a sell of zero keys #718

Description

@Chucks1093

Summary

A sell request with an amount of 0 should panic with zero_amount before any payout calculation occurs.

Scope

  • Test selling 0 keys panics with zero_amount
  • Assert supply unchanged after the panic
  • Assert no KeySold event emitted

Acceptance Criteria

  • Selling 0 keys panics with zero_amount
  • Supply unchanged after panic
  • No event emitted

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