[Dev Tools] Contracts are 4x in size after migrating hardhat project #1054
-
Team or ProjectNo response ZK chainabstract EnvironmentTestnet Select the Dev Tool you are usingHardhat Plugins Provide the version of the tool (if applicable)1.6 Provide a brief description of the functionality you're trying to implement and the issue you are running into.I'm running into an issue when switching over to Zksync where by contracts are all doing about a 4x in size, throwing them all above the limit, even the small contracts. I'm not sure if I have something wrong in my setup or not. This is my
And my package.json dependencies
Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.