Skip to content

Use deployed StarkExchangeMigrationV2 impl in integration tests#21

Merged
lfportal merged 1 commit intomainfrom
test/stark-exchange-migration-v2-deployed-impl
Apr 21, 2026
Merged

Use deployed StarkExchangeMigrationV2 impl in integration tests#21
lfportal merged 1 commit intomainfrom
test/stark-exchange-migration-v2-deployed-impl

Conversation

@lfportal
Copy link
Copy Markdown
Contributor

@lfportal lfportal commented Apr 21, 2026

Summary

  • Reference the mainnet-deployed StarkExchangeMigrationV2 implementation (0x273b65a7231321D4ee47a4c47408Ef43517455Ec) in the integration test instead of deploying a fresh instance.
  • Bump FORK_BLOCK to 24920000 (past the deployment block 24918805).
  • Add test_DeployedBytecodeMatchesCompiled to assert the on-chain runtime bytecode matches a locally compiled instance.

Test plan

  • ETH_RPC_URL=… forge test --match-path test/integration/bridge/starkex/StarkExchangeMigrationV2.t.sol -vv — all 9 tests pass, including the new bytecode check.

🤖 Generated with Claude Code


Note

Low Risk
Low risk: test-only changes that adjust fork block/upgrade target and add a bytecode equivalence assertion; no production contract logic is modified.

Overview
Integration tests now upgrade the StarkEx proxy to the mainnet-deployed StarkExchangeMigrationV2 implementation (DEPLOYED_IMPL) instead of deploying a fresh one, and the fork block is bumped to a height where that implementation exists.

Adds test_DeployedBytecodeMatchesCompiled to assert the deployed runtime bytecode equals a locally compiled StarkExchangeMigrationV2, helping ensure the test is exercising the exact on-chain code.

Reviewed by Cursor Bugbot for commit 090aa1a. Bugbot is set up for automated code reviews on this repo. Configure here.

The StarkExchangeMigrationV2 implementation is now deployed on mainnet
at 0x273b65a7231321D4ee47a4c47408Ef43517455Ec. Update the integration
tests to reference the deployed address rather than deploying a fresh
instance, and add a bytecode equivalence check against the locally
compiled contract.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lfportal lfportal requested a review from a team as a code owner April 21, 2026 01:39
@lfportal lfportal requested a review from ermyas April 21, 2026 01:40
@lfportal lfportal merged commit 22039be into main Apr 21, 2026
5 checks passed
@lfportal lfportal deleted the test/stark-exchange-migration-v2-deployed-impl branch April 21, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants