Skip to content

test: add integration test for get_key_balance after buys and sells - #690

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
sojetunde8:fix/issue-679
Jul 29, 2026
Merged

test: add integration test for get_key_balance after buys and sells#690
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
sojetunde8:fix/issue-679

Conversation

@sojetunde8

Copy link
Copy Markdown
Contributor

Closes #679

Summary

  • Adds integration test verifying get_key_balance returns correct key count after a sequence of buys and sells
  • Covers: buy 5 keys (balance=5), buy 3 more (balance=8), sell 4 (balance=4), sell remaining 4 (balance=0)
  • Asserts a wallet that has never transacted returns 0

Testing

Ran the new integration test with cargo test --test get_balance_key_count_after_trades — 1 test passed, confirming get_key_balance returns the expected balance at each step.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@sojetunde8 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit b3d6934 into accesslayerorg:main Jul 29, 2026
1 check passed
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 for the get_balance view returning the correct key count for a wallet after buys and sells

2 participants