Skip to content

Commit 11dc5e3

Browse files
ernestognwAmxx
andauthored
Expose an initializer function for non-abstract contracts in their upgradeable versions (#5008)
Co-authored-by: Hadrien Croubois <[email protected]>
1 parent 427b8bb commit 11dc5e3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: .changeset/thin-walls-drop.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': minor
3+
---
4+
5+
`AccessManager`, `VestingWallet`, `TimelockController` and `ERC2771Forwarder`: Added a public `initializer` function in their corresponding upgradeable variants.

Diff for: scripts/upgradeable/transpile.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ npx @openzeppelin/upgrade-safe-transpiler -D \
3838
-x '!contracts/proxy/ERC1967/ERC1967Utils.sol' \
3939
-x '!contracts/proxy/utils/UUPSUpgradeable.sol' \
4040
-x '!contracts/proxy/beacon/IBeacon.sol' \
41-
-p 'contracts/**/presets/**/*' \
41+
-p 'contracts/access/manager/AccessManager.sol' \
42+
-p 'contracts/finance/VestingWallet.sol' \
43+
-p 'contracts/governance/TimelockController.sol' \
44+
-p 'contracts/metatx/ERC2771Forwarder.sol' \
4245
-n \
4346
-N 'contracts/mocks/**/*' \
4447
-q '@openzeppelin/'

0 commit comments

Comments
 (0)