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

OP Stack SOLC update from 0.8.15 to 0.8.25 #106

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

AmadiMichael
Copy link
Member

Description

This covers solidity version upgrade of all OP Stack smart contracts from 0.8.15 code to 0.8.25.

Metadata

Fixes ethereum-optimism/optimism#11527

@AmadiMichael AmadiMichael changed the title first draft of solc-update-0.8.15-to-0.8.25 OP Stack SOLC update from 0.8.15 to 0.8.25 Oct 3, 2024
Copy link
Contributor

@smartcontracts smartcontracts left a comment

Choose a reason for hiding this comment

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

Looks good to me. I've already managed to compile the contracts with solc 0.8.25 and it worked fine. We also seem to have mercifully gained back a few hundred bytes inside of OptimismPortal2Interop.

@smartcontracts
Copy link
Contributor

You have my approval but please also get approval from @mds1 before merging

@smartcontracts
Copy link
Contributor

Oh and @maurelian too

#### Gas Optimization

- Unchecked loop increments (>= 0.8.22)
- Use `mcopy` instead of `mload`/`mstore` loop when copying byte arrays (>= 0.8.25)
Copy link
Contributor

Choose a reason for hiding this comment

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

mcopy will also simplify our proofs and may improve performance there as a result

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if you suggest I add this or just a comment...

Copy link
Contributor

@maurelian maurelian left a comment

Choose a reason for hiding this comment

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

Left a couple suggestions, am good once resolved.

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.

EVM Engineering: Update all 0.8.15 code to 0.8.25 (Isthmus)
4 participants