Skip to content

Handle stateOverrides when detecting empty simulation input#1469

Open
KillariDev wants to merge 6 commits into
mainfrom
t3code/6901ad1f
Open

Handle stateOverrides when detecting empty simulation input#1469
KillariDev wants to merge 6 commits into
mainfrom
t3code/6901ad1f

Conversation

@KillariDev

Copy link
Copy Markdown
Contributor

Summary

  • Updated isEmptySimulationInput in SimulationModeEthereumClientService.ts to consider stateOverrides in emptiness logic.
  • Ensures a simulation state with one entry and empty transactions/signatures is treated as non-empty when stateOverrides contains values.
  • Preserves existing behavior for truly empty transaction/signed message input with no state overrides.

Testing

  • Not run (no validation commands were executed for this patch in this context).

- Update `isEmptySimulationInput` to consider `stateOverrides` in single-frame emptiness checks
- Prevents zero-state overrides-only inputs from being treated as non-empty
- Change simulation input assembly to avoid emitting a zero-content block unless state overrides are present
- Simplify empty-input detection to rely on input array length
- Update unit and popup reset tests for empty input/visualization and updated simulationId behavior
- Keep blocks when only `stateOverrides` are present in `getCurrentSimulationInput`
- Avoid dropping override-only blocks from simulation input
@KillariDev

Copy link
Copy Markdown
Contributor Author

/review

1 similar comment
@KillariDev

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CI Agent Review

No issues found. The refactoring is internally consistent and correct across all touched files.

@KillariDev KillariDev requested a review from MicahZoltu June 15, 2026 10:29
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.

1 participant