feat(sim): Emit exact diagnostic_events matching Soroban CLI - Issue #341#523
Open
unixfundz wants to merge 2 commits intodotandev:mainfrom
Open
feat(sim): Emit exact diagnostic_events matching Soroban CLI - Issue #341#523unixfundz wants to merge 2 commits intodotandev:mainfrom
diagnostic_events matching Soroban CLI - Issue #341#523unixfundz wants to merge 2 commits intodotandev:mainfrom
Conversation
Owner
|
fix conflicts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Fixes
erst-simdiagnostic event emission to achieve 1:1 parity withidentical
rust-soroban-envexecution outputs.Changes
Core Implementation
in_successful_contract_callfix: Corrected inverted logic — wasset to
event.failed_callinstead of!event.failed_callin both themain event emission path and
categorize_eventscontract_idserialization: Replaced Rust Debug format ({:?})with lowercase hex encoding, matching Soroban CLI output
topicsanddataserialization: Replaced Rust Debug format withbase64-encoded XDR via
WriteXdr, matching Soroban CLI output exactlyrunner.rscleanup: Removed brokenCostModel/set_modelcallsunavailable in soroban-env-host v25 public API
test_decode_vm_trapsreferencingnon-existent
decode_errorfunctionTesting
simulator/tests/diagnostic_events.rswith 6 tests:in_successful_contract_call_is_inverse_of_failed_calltopics_serialize_to_valid_xdr_base64data_serializes_to_valid_xdr_base64contract_id_encodes_as_hex_without_debug_formattingevent_type_field_matches_allowed_valuesevent_body_is_v0Verification
cargo test)cargo clippy -- -D warningspasses with zero warningsRelated Issues
Closes #341
Type of Change
Checklist