Skip to content

chore: return migrator address on ReadImplementationAddresses output#819

Merged
0xiamflux merged 4 commits intosc-feat/opcm2-read-impls-migratorfrom
chore/opcm2-read-impls-migrator
Jan 28, 2026
Merged

chore: return migrator address on ReadImplementationAddresses output#819
0xiamflux merged 4 commits intosc-feat/opcm2-read-impls-migratorfrom
chore/opcm2-read-impls-migrator

Conversation

@0xiamflux
Copy link
Copy Markdown

closes OPT-1410

@0xiamflux 0xiamflux requested review from 0xOneTony and 0xniha January 27, 2026 14:25
@0xiamflux 0xiamflux self-assigned this Jan 27, 2026
@linear
Copy link
Copy Markdown

linear bot commented Jan 27, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a test case for reverting when opcm code length is zero.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed here

@0xiamflux 0xiamflux merged commit 771d03d into sc-feat/opcm2-read-impls-migrator Jan 28, 2026
1 check passed
@0xiamflux 0xiamflux deleted the chore/opcm2-read-impls-migrator branch January 28, 2026 15:45
0xiamflux added a commit that referenced this pull request Feb 6, 2026
…thereum-optimism#19076)

* chore: return migrator address on ReadImplementationAddresses output (#819)

* chore: return migrator address on ReadImplementationAddresses output

* chore: use fixed solidity version

* chore: just pr ready

* test: add zero length code test for opcm

* chore: update tests on migrator (#822)

* refactor: replace contract mocks with vm.mock

* fix: read impl typo

* fix: remove nonexistent delayedWETHPermissionedGameProxy from test

The test referenced input_.delayedWETHPermissionedGameProxy which doesn't
exist in the ReadImplementationAddresses.Input struct. The delayedWETH
implementation is read from OPCM's implementations() return value, not
from an input proxy address.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use common test

* fix: handle OPCM V2 feature flag in ReadImplementationAddresses tests

The test was using the `opcm` variable directly, which is only set when
OPCM_V2 feature is disabled. Added `_opcm()` helper to return the correct
instance based on the feature flag.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: IamFlux <175354924+0xiamflux@users.noreply.github.com>
Co-authored-by: niha <205694301+0xniha@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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.

2 participants