Sablier

Sablier
DeFiFoundry
53,440 USDC
View results
Submission Details
Severity: low
Invalid

Contracts deployed in Linea will not work due to the new PUSH0 opcode.

Summary

The Solidity version 0.8.20 introduces the new PUSH0 opcode, which is incompatible with the Linea chain.

Vulnerability Details

As stated in the documentation, Sablier is compatible with any EVM chain.

Solidity version 0.8.20 and higher are incompatible with the Linea due to the introduction of the new PUSH0 opcode.

https://docs.linea.build/developers/quickstart/ethereum-differences

"The PUSH0 opcode compatibility was introduced in Solidity compiler version 0.8.20, which came after the London release. However, Linea currently supports Solidity compiler version 0.8.19 and lower, which aligns with the London release of the Ethereum mainnet.
To resolve this issue, recompile your contract using Solidity version 0.8.19 or lower."

Impact

Contracts deployed on Linea using Solidity version 0.8.20 or higher will not work due to the new PUSH0 opcode.

Tools Used

Manual Review

Recommendations

Ensure that contracts deployed on Linea are compiled using Solidity version 0.8.19 or lower to maintain compatibility with the chain.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

Known - LightChaser

https://github.com/Cyfrin/2024-05-Sablier/issues/1

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.