Skip to content

test: add Rex4 system contract deployment and idempotence tests -v2#203

Open
viktorcrypt wants to merge 3 commits intomegaeth-labs:mainfrom
viktorcrypt:viktorcrypt/test/rex4-system-contract-deployment-v2
Open

test: add Rex4 system contract deployment and idempotence tests -v2#203
viktorcrypt wants to merge 3 commits intomegaeth-labs:mainfrom
viktorcrypt:viktorcrypt/test/rex4-system-contract-deployment-v2

Conversation

@viktorcrypt
Copy link

Summary

Adds Rex4 deployment tests for MegaAccessControl and MegaLimitControl, covering:

  • activation on Rex4
  • idempotent repeated apply_pre_execution_changes()
  • Rex3 boundary behavior (not deployed before Rex4)

Also incorporates the requested review follow-up:

  • use production-like hardfork activation with with_all_activated()
  • check KECCAK_EMPTY for the non-deployed case
  • extract repeated executor setup into a shared helper

Note

This PR replaces #187, which got stuck due to a GitHub fork-lineage issue after the repository outage. All review feedback from Troublor has been incorporated here. Please consider closing #187 in favor of this one.

@viktorcrypt viktorcrypt force-pushed the viktorcrypt/test/rex4-system-contract-deployment-v2 branch from 2fcaa26 to ee21de5 Compare March 20, 2026 09:16
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