You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add disclaimer to migrating-to-zksync.md (#470)
# Description
Based on a user-reported issue with `matterlabs/hardhat-zksync`, we
realized that executing `deployProxy` on non-ZKsync chains requires the
`@openzeppelin/hardhat-upgrades` package to be installed.
## Linked Issues
matter-labs/hardhat-zksync#1863
## Additional context
@@ -395,6 +397,9 @@ The [following example project](https://github.com/uF4No/hardhat-evm-zksync-exam
395
397
Here are some recommendations for projects that target multiple chains:
396
398
397
399
- Add the desired ZKsync networks with the `zksync:true` flag to the `hardhat.config.ts`.
400
+
- Install `@openzeppelin/hardhat-upgrades` explicitly if you're using proxy contracts and deploying to both ZKsync and regular Ethereum networks.
401
+
The `@matterlabs/hardhat-zksync` plugin uses its own implementation for ZKsync networks but delegates to OpenZeppelin's implementation
402
+
for non-ZKsync networks.
398
403
- Make sure to run the compilation task with the `--network` flag when targeting ZKsync networks to use the custom compiler.
399
404
- When targeting ZKsync chains, the `@matterlabs/hardhat-zksync` plugin overrides the following plugins: `@nomiclabs/hardhat-ethers`, `@openzeppelin/hardhat-upgrades`.
400
405
- To avoid typescript collision errors between `@nomiclabs/hardhat-ethers` and
0 commit comments