Expose an initializer function for non-abstract contracts in their upgradeable versions (#5008)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
Ernesto García
2024-04-09 04:03:02 -06:00
committed by GitHub
parent 427b8bb028
commit 11dc5e3809
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'openzeppelin-solidity': minor
---
`AccessManager`, `VestingWallet`, `TimelockController` and `ERC2771Forwarder`: Added a public `initializer` function in their corresponding upgradeable variants.

View File

@ -38,7 +38,10 @@ npx @openzeppelin/upgrade-safe-transpiler -D \
-x '!contracts/proxy/ERC1967/ERC1967Utils.sol' \
-x '!contracts/proxy/utils/UUPSUpgradeable.sol' \
-x '!contracts/proxy/beacon/IBeacon.sol' \
-p 'contracts/**/presets/**/*' \
-p 'contracts/access/manager/AccessManager.sol' \
-p 'contracts/finance/VestingWallet.sol' \
-p 'contracts/governance/TimelockController.sol' \
-p 'contracts/metatx/ERC2771Forwarder.sol' \
-n \
-N 'contracts/mocks/**/*' \
-q '@openzeppelin/'