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

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
pull/4978/head^2
Ernesto García 10 months ago committed by GitHub
parent 427b8bb028
commit 11dc5e3809
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/thin-walls-drop.md
  2. 5
      scripts/upgradeable/transpile.sh

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

@ -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/'

Loading…
Cancel
Save