Skip to content

[Dev Tools] Contracts are 4x in size after migrating hardhat project #1054

Answered by ly0va
rakoia asked this question in Dev Tooling
Discussion options

You must be logged in to vote

Hi @rakoia, can you please elaborate what you mean by "throwing them all above the limit"? ZKsync uses a different virtual machine, and a contract's bytecode will be different (and larger) than of the same contract compiled for EVM, but the limit on bytecode size in ZKsync is not the same as in Ethereum.

Feel free to reopen and provide a sample contract you're having issues with so that we can reproduce them, otherwise I'll mark this as answered for now.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rakoia
Comment options

@ly0va
Comment options

@ly0va
Comment options

ly0va Jul 2, 2025
Maintainer

Answer selected by ly0va
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devtools Questions related to zkSync Tooling
2 participants