diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 211da6297..dbee1b709 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog +## Unreleased + +- Fix Hardhat compile error with older versions of Solidity. ([#892](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/892)) + ## 1.30.0 (2023-09-27) -- Support new upgrade interface in OpenZeppelin Contracts 5.0. ([883](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/883)) +- Support new upgrade interface in OpenZeppelin Contracts 5.0. ([#883](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/883)) - Add validations for namespaced storage layout. ([#876](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/876)) - Deprecate low-level API. Use [CLI or high-level API](https://docs.openzeppelin.com/upgrades-plugins/1.x/api-core) instead. diff --git a/packages/plugin-hardhat/CHANGELOG.md b/packages/plugin-hardhat/CHANGELOG.md index 8d460efa8..ec76abb5b 100644 --- a/packages/plugin-hardhat/CHANGELOG.md +++ b/packages/plugin-hardhat/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Fix Hardhat compile error with older versions of Solidity. ([#892](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/892)) + ## 2.3.1 (2023-09-28) - Check for non-zero admin address when importing transparent proxy. ([#887](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/887)) diff --git a/packages/plugin-hardhat/src/index.ts b/packages/plugin-hardhat/src/index.ts index b2da94c17..836593dcb 100644 --- a/packages/plugin-hardhat/src/index.ts +++ b/packages/plugin-hardhat/src/index.ts @@ -97,7 +97,9 @@ subtask(TASK_COMPILE_SOLIDITY, async (args: { force: boolean }, hre, runSuper) = }); subtask(TASK_COMPILE_SOLIDITY_COMPILE, async (args: RunCompilerArgs, hre, runSuper) => { - const { isNamespaceSupported, validate, solcInputOutputDecoder, makeNamespacedInput } = await import('@openzeppelin/upgrades-core'); + const { isNamespaceSupported, validate, solcInputOutputDecoder, makeNamespacedInput } = await import( + '@openzeppelin/upgrades-core' + ); const { writeValidations } = await import('./utils/validations'); // TODO: patch input