Skip to content

Title: test: add integration test for sell reverting when quantity exceeds holder balance#564

Open
chidii wants to merge 6 commits into
accesslayerorg:mainfrom
chidii:test/sell-exceeds-balance-554
Open

Title: test: add integration test for sell reverting when quantity exceeds holder balance#564
chidii wants to merge 6 commits into
accesslayerorg:mainfrom
chidii:test/sell-exceeds-balance-554

Conversation

@chidii

@chidii chidii commented Jul 20, 2026

Copy link
Copy Markdown
  • Buys exactly 2 keys for a holder
  • Attempts to sell 3 keys (exceeds balance)
  • Asserts revert with ContractError::InsufficientBalance
  • Asserts holder balance unchanged at 2
  • Asserts creator supply unchanged

Closes #554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add integration test confirming sell reverts when holder attempts to sell more keys than they own

1 participant