From c5af262ca23e892308c8ca5362c35495813411ad Mon Sep 17 00:00:00 2001 From: Antonio Date: Fri, 25 Oct 2024 15:50:31 +0100 Subject: [PATCH] fix: warnings ethers and oz (#238) # Description Updates warnings in upgradable plugin ## Linked Issues N/A ## Additional context --- .../70.hardhat-zksync-upgradable.md | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/content/00.build/40.tooling/20.hardhat/30.plugins/70.hardhat-zksync-upgradable.md b/content/00.build/40.tooling/20.hardhat/30.plugins/70.hardhat-zksync-upgradable.md index 6c754569..24fb924d 100644 --- a/content/00.build/40.tooling/20.hardhat/30.plugins/70.hardhat-zksync-upgradable.md +++ b/content/00.build/40.tooling/20.hardhat/30.plugins/70.hardhat-zksync-upgradable.md @@ -13,27 +13,19 @@ The `hardhat-zksync-upgradable` plugin provides an easy-to-use interface for int [OpenZeppelin Upgrades Plugins](https://docs.openzeppelin.com/upgrades-plugins) within a Hardhat environment on ZKsync. ::callout{icon="i-heroicons-exclamation-triangle" color="amber"} -Ensure you are using the correct version of the plugin with ethers: +Ensure you are using the corresponding version of the plugin for ethers `v5` and `v6`: -- For plugin version **<1.0.0**: - - - Compatible with ethers **v5**. - -- For plugin version **≥1.0.0**: - - Compatible with ethers **v6** (⭐ Recommended) +- Plugin version **<1.0.0** is compatible with ethers **v5**. +- Plugin version **≥1.0.0** is compatible with ethers **v6** (⭐ Recommended) Examples are adopted for plugin version **>=1.0.0** :: ::callout{icon="i-heroicons-exclamation-triangle" color="amber"} -Ensure that you're using the correct version of OpenZeppelin Contracts Upgradable for compatibility with your plugin: - -- For plugin version **<1.6.0**: - - - Compatible with `@openzeppelin/contracts-upgradeable` **v4**. +Ensure that you're using the correct version of the plugin for compatibility with OpenZeppelin Contracts Upgradable `v4` and `v5`: -- For plugin version **≥1.7.0**: - - Compatible with `@openzeppelin/contracts-upgradeable` **v5** (⭐ Recommended) +- Plugin version **<1.6.0** is compatible with `@openzeppelin/contracts-upgradeable` **v4**. +- Plugin version **≥1.7.0** is compatible with `@openzeppelin/contracts-upgradeable` **v5** (⭐ Recommended) :: @@ -46,10 +38,6 @@ To use `hardhat-zksync-upgradable` in your project, ensure the following: ## Installation -::callout{icon="i-heroicons-exclamation-triangle" color="amber"} -Current version of the upgradable plugin does not support the latest version of the `@openzeppelin/upgrades-core` package. -:: - [@matterlabs/hardhat-zksync-upgradable](https://www.npmjs.com/package/@matterlabs/hardhat-zksync-upgradable) Add the latest version of this plugin to your project with the following command: