Skip to content

Fix event-testing assertion in events example to use ContractEvents - #2687

Open
leighmcculloch wants to merge 1 commit into
stellar:mainfrom
leighmcculloch:fix-events-testing-contract-events
Open

Fix event-testing assertion in events example to use ContractEvents#2687
leighmcculloch wants to merge 1 commit into
stellar:mainfrom
leighmcculloch:fix-events-testing-contract-events

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Update the test's event assertions to use the SDK's current event-testing APIs (XDR comparison via to_xdr, filter_by_contract), and point the example link at the current version.

Why

The old tuple-vec comparison no longer type-checks against the current SDK, so the example as shown would fail to compile.

### What
Update the test's event assertions to use the SDK's current event-testing APIs (XDR comparison via `to_xdr`, `filter_by_contract`), and point the example link at the current version.

### Why
The old tuple-vec comparison no longer type-checks against the current SDK, so the example as shown would fail to compile.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the events example to match the current Soroban SDK event-testing APIs and upstream example.

Changes:

  • Uses XDR-based ContractEvents assertions and contract filtering.
  • Updates links and cloning instructions to main.
  • Documents the supported event comparison approaches.

Recommendation: MERGE-READY — correct and complete.

@stellar-jenkins-ci

Copy link
Copy Markdown

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.

2 participants