Skip to content

Verify STX transfer amounts in tip event assertions#181

Merged
Mosas2000 merged 1 commit intomainfrom
test/verify-transfer-amounts
Feb 26, 2026
Merged

Verify STX transfer amounts in tip event assertions#181
Mosas2000 merged 1 commit intomainfrom
test/verify-transfer-amounts

Conversation

@Mosas2000
Copy link
Copy Markdown
Owner

Summary

Add a test that verifies the exact STX amounts in transfer events rather than just checking event count.

Test Added

For a 1,000,000 uSTX tip with 0.5% fee:

  • Recipient transfer: 995,000 uSTX from wallet1 to wallet2
  • Fee transfer: 5,000 uSTX from wallet1 to deployer

All 34 tests pass.

Closes #71

Assert that a 1,000,000 uSTX tip produces a 995,000 uSTX transfer
to the recipient and a 5,000 uSTX fee transfer to the contract
owner. Validates sender and recipient addresses on both transfers.
@Mosas2000 Mosas2000 merged commit fcfe8fa into main Feb 26, 2026
1 of 3 checks 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.

Smart contract tests do not verify STX transfer amounts in events

1 participant