Skip to content

Add some test cases for EIP-1153 - #19

Merged
moglu2017 merged 2 commits into
mainfrom
moglu/EIP-1153
Aug 20, 2026
Merged

Add some test cases for EIP-1153#19
moglu2017 merged 2 commits into
mainfrom
moglu/EIP-1153

Conversation

@moglu2017

Copy link
Copy Markdown
Contributor

Describe your changes

Add EIP-1153 tests for transient storage behavior across multiple frames and clauses

  • Implement tests for EIP-1153 rules regarding transient storage in frames_test.go, covering:

    • STATICCALL restrictions on TSTORE and allowance for TLOAD
    • Revert rollback behavior for frame writes and inner call writes
    • Ownership rules for CALL and DELEGATECALL
    • Survival of transient storage across frames within a transaction
  • Add multi-clause transaction tests in multiclause_test.go to verify transient storage behavior in mined and simulated transactions.

  • Create shared probe deployment logic in probe_test.go to optimize test execution.

  • Update BuildTx function in client.go to support multiple clauses for genuine multi-clause transactions.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have executed relevant tests
  • I have added thorough tests for the changes
  • Does this need a documentation update?

…mes and clauses

- Implement tests for EIP-1153 rules regarding transient storage in `frames_test.go`, covering:
  - STATICCALL restrictions on TSTORE and allowance for TLOAD
  - Revert rollback behavior for frame writes and inner call writes
  - Ownership rules for CALL and DELEGATECALL
  - Survival of transient storage across frames within a transaction

- Add multi-clause transaction tests in `multiclause_test.go` to verify transient storage behavior in mined and simulated transactions.

- Create shared probe deployment logic in `probe_test.go` to optimize test execution.

- Update `BuildTx` function in `client.go` to support multiple clauses for genuine multi-clause transactions.
@moglu2017
moglu2017 merged commit 0c6befb into main Aug 20, 2026
6 of 7 checks passed
@moglu2017
moglu2017 deleted the moglu/EIP-1153 branch August 20, 2026 13:12
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.

3 participants