Skip to content

test: add Rex4 system contract deployment and idempotence tests#187

Open
viktorcrypt wants to merge 1 commit intomegaeth-labs:mainfrom
viktorcrypt:viktorcrypt/test/rex4-system-contract-deployment
Open

test: add Rex4 system contract deployment and idempotence tests#187
viktorcrypt wants to merge 1 commit intomegaeth-labs:mainfrom
viktorcrypt:viktorcrypt/test/rex4-system-contract-deployment

Conversation

@viktorcrypt
Copy link

Summary

Adds deployment wiring tests for the two Rex4 system contracts:
MegaAccessControl (0x...0004) and MegaLimitControl (0x...0005).

What is tested

  • Activation: verifies both contracts are deployed at the correct
    addresses after apply_pre_execution_changes() on a Rex4 block
  • Idempotence: verifies that calling apply_pre_execution_changes()
    twice does not panic or corrupt state
  • Spec boundary: verifies that on Rex3, neither contract is deployed

Why

The interception behavior of these contracts was already covered,
but the hardfork-gated deployment wiring in block/executor.rs had
no test coverage. These tests close that gap for the Rex4 unstable frontier.

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