Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: relay message helper fns #68

Merged
merged 3 commits into from
Jun 24, 2024
Merged

refactor: relay message helper fns #68

merged 3 commits into from
Jun 24, 2024

Conversation

excaliborr
Copy link
Contributor

🤖 Linear

Closes OPT-XXX

hexshire
hexshire previously approved these changes Jun 24, 2024
Copy link
Member

@hexshire hexshire left a comment

Choose a reason for hiding this comment

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

Nice, super clean!

// NOTE: Changes current fork to optimism
vm.selectFork(optimism);
uint256 _messageNonce = L2_MESSENGER.messageNonce();
vm.startPrank(AddressAliasHelper.applyL1ToL2Alias(address(OPTIMISM_L1_MESSENGER)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe using this?

Suggested change
vm.startPrank(AddressAliasHelper.applyL1ToL2Alias(address(OPTIMISM_L1_MESSENGER)));
vm.startPrank(AddressAliasHelper.applyL1ToL2Alias(address(OPTIMISM_L1_MESSENGER)));

But if now we're not using that immutable on any other place than this, is also ok to remove it.

0xDiscotech
0xDiscotech previously approved these changes Jun 24, 2024
@0xDiscotech
Copy link
Contributor

Nice one 🫡

@excaliborr excaliborr dismissed stale reviews from 0xDiscotech and hexshire via e01c153 June 24, 2024 14:19
@excaliborr excaliborr merged commit 2456e24 into dev Jun 24, 2024
4 checks passed
@excaliborr excaliborr deleted the refactor/helper-fns branch June 24, 2024 17:17
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