Skip to content

Conversation

@sistemd
Copy link
Contributor

@sistemd sistemd commented Jan 27, 2026

  • Test entire output serialization in starknet_simulateTransactions.
    • Instead of manually serializing a part of the method output and comparing that against fixtures, serialize and compare the entire output.
    • This ensures that the serialization starts at the top level and that no per-version logic is skipped.
    • Update test fixtures to match the new serialization strategy.
  • Use JSON fixtures in starknet_simulateTransactions.
    • Convert Rust type fixtures into JSON files that are loaded and compared against.
    • Having both the method output and the fixture as a Rust type that get serialized and compared means that it will be impossible to detect any errors in the serialization logic (which is now more complex due to the addition of SimulationFlag::ReturnInitialReads).

…sactions`

- Instead of manually serializing a part of the method output and
comparing that against fixtures, serialize and compare the entire
output.
- This ensures that the serialization starts at the top level and that
no per-version logic is skipped.
- Update test fixtures to match the new serialization strategy.
- Convert Rust type fixtures into JSON files that are loaded and
compared against.
- Having both the method output and the fixture as a Rust type that get
serialized and compared means that it will be impossible to detect any
errors in the serialization logic (which is now more complex due to the
addition of `SimulationFlag::ReturnInitialReads`).
@sistemd sistemd requested a review from a team as a code owner January 27, 2026 18:20
Copy link
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@t00ts t00ts left a comment

Choose a reason for hiding this comment

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

👍

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.

4 participants