Skip to content

test(creator-keys): add regression test verifying buyer address corre…#357

Open
godamongstmen897 wants to merge 2 commits into
accesslayerorg:mainfrom
godamongstmen897:feature/buy-event-buyer-address-regression
Open

test(creator-keys): add regression test verifying buyer address corre…#357
godamongstmen897 wants to merge 2 commits into
accesslayerorg:mainfrom
godamongstmen897:feature/buy-event-buyer-address-regression

Conversation

@godamongstmen897
Copy link
Copy Markdown
Contributor

Summary

Closes #341. Introduces an independent integration regression test suite within the creator-keys crate to explicitly assert that emitted buy event topic fields properly contain the executing caller's address.

What Changed

  • Regression Isolation: Developed creator-keys/tests/buy_event_buyer_address.rs to validate buyer parameter invariants independently from baseline event fee routines.
  • Inbound Address Assertions: Configured precise state hooks confirming that the emitted buyer topic exactly reflects the calling identity vector and is strictly non-zero.
  • Drift Prevention: Added distinct event log checking loops to prevent silent field mismatches or serialization truncations across future optimization refactors.

Testing & Validation

  • Verified targeted verification assertions pass locally using cargo test -p creator-keys --test buy_event_buyer_address.
  • Confirmed entire test runtime is completely decoupled from existing snapshot schemas.

Closes #341

Copilot AI review requested due to automatic review settings May 29, 2026 23:10
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@godamongstmen897 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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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 regression test for buy event containing correct buyer address

2 participants