Beginner FriendlyFoundryBridge
100 EXP
View results
Submission Details
Severity: high
Valid

Token factory unlikely to be compatible with zksync

Summary

There a subtle differences between acceptable syntax when using zksync compared to ethereum. These are detailed here https://era.zksync.io/docs/reference/architecture/differences-with-ethereum.html#codecopy

On zkSync, contract deployment is performed using the hash of the bytecode. The create and create2 functions operate differently compared to Ethereum. The compiler must be aware of the bytecode of the deployed contract in advance. If you try to deploy this to zkSync on remix, it will fail.

Recommendations

Ensure suitable drafting in accordance with the linked guidance above.

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

deployToken(): zksync compatibility issues

Support

FAQs

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