Slow Ocean Seahorse - CREATE opcode works differently in the zkSync
chain
#77
Labels
Won't Fix
The sponsor confirmed this issue will not be fixed
zkSync
chain
#77
Slow Ocean Seahorse
Medium
CREATE opcode works differently in the
zkSync
chainSummary
zkSync mainnet
chain has differences in the usage of the create opcode compared to the EVM.According to the mentioned details, the protocol can be deployed in zkSync mainnet.
Vulnerability Detail
The zkSync Era docs explain how it differs from Ethereum.
Check the description of CREATE (zkSynce Era Docs) and it is also stated that Create cannot be used for arbitrary code unknown to the compiler.
Impact
zkSync uses a different compilation and deployment process than Ethereum.
Deployment might fail.
Code Snippet
https://github.com/sherlock-audit/2024-11-tally/blob/main/staker/src/extensions/GovernanceStakerDelegateSurrogateVotes.sol#L45
Tool used
Manual Review
Recommendation
use
create2
instead.The text was updated successfully, but these errors were encountered: