Commit 0998cb5
committed
Upgrade OpenZeppelin to the latest 4.x version
The project is on OpenZeppelin 4 and the latest version currently
available is 4.9.6. This change will also allow us to use
Ownable2StepUpgradeable that was not available in OpenZeppelin 4.6. The
upgrade required increasing the version of
@openzeppelin/hardhat-upgrades plugin given the bug in the previously
used 1.20.0 version not resolving the correct version of dependencies
used (OZ contracts vs contracts-upgradeable) and in our case complaining
about the delegatecall used in the OZ's AddressUpgradeable code. The bug
was fixed in 1.20.4 version of the plugin. This also required updates in
the deployment tests as some functions are no longer available in the
upgraded version.
https://forum.openzeppelin.com/t/interacting-with-uups-upgradeable-contracts-in-test-throwing-contract-is-not-upgrade-safe-use-of-delegatecall-is-not-allowed/32743/51 parent 6188812 commit 0998cb5
File tree
3 files changed
+416
-81
lines changed- solidity/ecdsa
- test
3 files changed
+416
-81
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | 56 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 57 | + | |
71 | 58 | | |
72 | 59 | | |
73 | 60 | | |
| |||
79 | 66 | | |
80 | 67 | | |
81 | 68 | | |
82 | | - | |
83 | | - | |
84 | 69 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 70 | + | |
99 | 71 | | |
100 | 72 | | |
101 | 73 | | |
| |||
107 | 79 | | |
108 | 80 | | |
109 | 81 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 82 | | |
120 | 83 | | |
121 | 84 | | |
| |||
0 commit comments