Skip to content

Comments

#207 Implement --dry-run flag for simulation without state commitment#233

Merged
Timi16 merged 3 commits intoTimi16:mainfrom
Tijesunimi004:issue-207
Feb 23, 2026
Merged

#207 Implement --dry-run flag for simulation without state commitment#233
Timi16 merged 3 commits intoTimi16:mainfrom
Tijesunimi004:issue-207

Conversation

@Tijesunimi004
Copy link
Contributor

@Tijesunimi004 Tijesunimi004 commented Feb 22, 2026

Closes #207

Description

This PR implements the --dry-run flag as requested. It allows users to simulate contract execution without persisting storage changes.

Key Changes

  • Storage Snapshot & Rollback: Implemented logic in ContractExecutor to capture the Host's storage state and restore it after execution.
  • Output Labeling: All dry-run related outputs are prefixed with [DRY RUN].
  • Storage Diffs: Added a clear summary of storage changes (added, modified, deleted) in the dry-run output.
  • Verification: Verified state rollback via internal testing.

Verification Results

Manual verification confirmed that state is correctly rolled back and outputs are properly labeled.

@Tijesunimi004 Tijesunimi004 changed the title Implement --dry-run flag for simulation without state commitment [#207] <a>Implement --dry-run flag for simulation without state commitment Feb 22, 2026
@Tijesunimi004 Tijesunimi004 changed the title [#207] <a>Implement --dry-run flag for simulation without state commitment #207 Implement --dry-run flag for simulation without state commitment Feb 22, 2026
@Timi16 Timi16 merged commit e61d71f into Timi16:main Feb 23, 2026
4 checks passed
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 --dry-run Flag to Simulate Without Committing State

2 participants