Skip to content

Commit 76f9087

Browse files
Update pragma and default compiler to 0.8.22 (#401)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent f8fb22f commit 76f9087

22 files changed

+167
-157
lines changed

packages/core/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.4.4 (2024-10-23)
4+
5+
### Potentially breaking changes
6+
- Update pragma versions to 0.8.22. ([#401](https://github.com/OpenZeppelin/contracts-wizard/pull/401))
7+
38
## 0.4.3 (2024-04-08)
49

510
- Add timestamp based Governor and Votes clock options. ([#347](https://github.com/OpenZeppelin/contracts-wizard/pull/347))

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openzeppelin/wizard",
3-
"version": "0.4.3",
3+
"version": "0.4.4",
44
"description": "A boilerplate generator to get started with OpenZeppelin Contracts",
55
"license": "MIT",
66
"repository": "github:OpenZeppelin/contracts-wizard",
@@ -20,8 +20,8 @@
2020
"update-env": "rm ./src/environments/hardhat/package-lock.json && npm install --package-lock-only --prefix ./src/environments/hardhat && rm ./src/environments/hardhat/upgradeable/package-lock.json && npm install --package-lock-only --prefix ./src/environments/hardhat/upgradeable"
2121
},
2222
"devDependencies": {
23-
"@openzeppelin/contracts": "^5.0.0",
24-
"@openzeppelin/contracts-upgradeable": "^5.0.0",
23+
"@openzeppelin/contracts": "^5.1.0",
24+
"@openzeppelin/contracts-upgradeable": "^5.1.0",
2525
"@types/node": "^18.0.0",
2626
"@types/semver": "^7.5.7",
2727
"array.prototype.flat": "^1.2.4",

packages/core/src/contract.test.ts.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Generated by [AVA](https://avajs.dev).
1010
1111
`// SPDX-License-Identifier: MIT␊
1212
// Compatible with OpenZeppelin Contracts ^5.0.0␊
13-
pragma solidity ^0.8.20;␊
13+
pragma solidity ^0.8.22;␊
1414
1515
contract Foo {␊
1616
}␊
@@ -22,7 +22,7 @@ Generated by [AVA](https://avajs.dev).
2222
2323
`// SPDX-License-Identifier: MIT␊
2424
// Compatible with OpenZeppelin Contracts ^5.0.0␊
25-
pragma solidity ^0.8.20;␊
25+
pragma solidity ^0.8.22;␊
2626
2727
import "./Bar.sol";␊
2828
@@ -36,7 +36,7 @@ Generated by [AVA](https://avajs.dev).
3636
3737
`// SPDX-License-Identifier: MIT␊
3838
// Compatible with OpenZeppelin Contracts ^5.0.0␊
39-
pragma solidity ^0.8.20;␊
39+
pragma solidity ^0.8.22;␊
4040
4141
import "./Bar.sol";␊
4242
import "./Quux.sol";␊
@@ -51,7 +51,7 @@ Generated by [AVA](https://avajs.dev).
5151
5252
`// SPDX-License-Identifier: MIT␊
5353
// Compatible with OpenZeppelin Contracts ^5.0.0␊
54-
pragma solidity ^0.8.20;␊
54+
pragma solidity ^0.8.22;␊
5555
5656
import "./Bar.sol";␊
5757
@@ -66,7 +66,7 @@ Generated by [AVA](https://avajs.dev).
6666
6767
`// SPDX-License-Identifier: MIT␊
6868
// Compatible with OpenZeppelin Contracts ^5.0.0␊
69-
pragma solidity ^0.8.20;␊
69+
pragma solidity ^0.8.22;␊
7070
7171
import "./Bar.sol";␊
7272
import "./Quux.sol";␊
@@ -82,7 +82,7 @@ Generated by [AVA](https://avajs.dev).
8282
8383
`// SPDX-License-Identifier: MIT␊
8484
// Compatible with OpenZeppelin Contracts ^5.0.0␊
85-
pragma solidity ^0.8.20;␊
85+
pragma solidity ^0.8.22;␊
8686
8787
contract Foo {␊
8888
}␊
@@ -94,7 +94,7 @@ Generated by [AVA](https://avajs.dev).
9494
9595
`// SPDX-License-Identifier: MIT␊
9696
// Compatible with OpenZeppelin Contracts ^5.0.0␊
97-
pragma solidity ^0.8.20;␊
97+
pragma solidity ^0.8.22;␊
9898
9999
contract Foo {␊
100100
// The following functions are overrides required by Solidity.␊
@@ -114,7 +114,7 @@ Generated by [AVA](https://avajs.dev).
114114
115115
`// SPDX-License-Identifier: MIT␊
116116
// Compatible with OpenZeppelin Contracts ^5.0.0␊
117-
pragma solidity ^0.8.20;␊
117+
pragma solidity ^0.8.22;␊
118118
119119
contract Foo {␊
120120
// The following functions are overrides required by Solidity.␊
@@ -138,7 +138,7 @@ Generated by [AVA](https://avajs.dev).
138138
139139
`// SPDX-License-Identifier: MIT␊
140140
// Compatible with OpenZeppelin Contracts ^5.0.0␊
141-
pragma solidity ^0.8.20;␊
141+
pragma solidity ^0.8.22;␊
142142
143143
contract Foo {␊
144144
function _otherFunction() internal whenNotPaused {}␊
@@ -151,7 +151,7 @@ Generated by [AVA](https://avajs.dev).
151151
152152
`// SPDX-License-Identifier: MIT␊
153153
// Compatible with OpenZeppelin Contracts ^5.0.0␊
154-
pragma solidity ^0.8.20;␊
154+
pragma solidity ^0.8.22;␊
155155
156156
contract Foo {␊
157157
function _otherFunction() internal whenNotPaused override(ERC20, OtherParent) {␊
@@ -166,7 +166,7 @@ Generated by [AVA](https://avajs.dev).
166166
167167
`// SPDX-License-Identifier: MIT␊
168168
// Compatible with OpenZeppelin Contracts ^5.0.0␊
169-
pragma solidity ^0.8.20;␊
169+
pragma solidity ^0.8.22;␊
170170
171171
contract Foo {␊
172172
constructor() {␊
@@ -181,7 +181,7 @@ Generated by [AVA](https://avajs.dev).
181181
182182
`// SPDX-License-Identifier: MIT␊
183183
// Compatible with OpenZeppelin Contracts ^5.0.0␊
184-
pragma solidity ^0.8.20;␊
184+
pragma solidity ^0.8.22;␊
185185
186186
import "./Bar.sol";␊
187187
@@ -198,7 +198,7 @@ Generated by [AVA](https://avajs.dev).
198198
199199
`// SPDX-License-Identifier: MIT␊
200200
// Compatible with OpenZeppelin Contracts ^5.0.0␊
201-
pragma solidity ^0.8.20;␊
201+
pragma solidity ^0.8.22;␊
202202
203203
contract Foo {␊
204204
function _otherFunction() internal {␊
@@ -213,7 +213,7 @@ Generated by [AVA](https://avajs.dev).
213213
214214
`// SPDX-License-Identifier: MIT␊
215215
// Compatible with OpenZeppelin Contracts ^5.0.0␊
216-
pragma solidity ^0.8.20;␊
216+
pragma solidity ^0.8.22;␊
217217
218218
contract Foo {␊
219219
function _otherFunction() internal override {␊
@@ -229,7 +229,7 @@ Generated by [AVA](https://avajs.dev).
229229
230230
`// SPDX-License-Identifier: MIT␊
231231
// Compatible with OpenZeppelin Contracts ^5.0.0␊
232-
pragma solidity ^0.8.20;␊
232+
pragma solidity ^0.8.22;␊
233233
234234
contract Foo {␊
235235
uint value = 42;␊
@@ -242,7 +242,7 @@ Generated by [AVA](https://avajs.dev).
242242
243243
`// SPDX-License-Identifier: MIT␊
244244
// Compatible with OpenZeppelin Contracts ^5.0.0␊
245-
pragma solidity ^0.8.20;␊
245+
pragma solidity ^0.8.22;␊
246246
247247
contract Foo {␊
248248
uint value = 42;␊
@@ -256,7 +256,7 @@ Generated by [AVA](https://avajs.dev).
256256
257257
`// SPDX-License-Identifier: MIT␊
258258
// Compatible with OpenZeppelin Contracts ^5.0.0␊
259-
pragma solidity ^0.8.20;␊
259+
pragma solidity ^0.8.22;␊
260260
261261
contract FooBarBaz {␊
262262
}␊
@@ -268,7 +268,7 @@ Generated by [AVA](https://avajs.dev).
268268
269269
`// SPDX-License-Identifier: MIT␊
270270
// Compatible with OpenZeppelin Contracts ^5.0.0␊
271-
pragma solidity ^0.8.20;␊
271+
pragma solidity ^0.8.22;␊
272272
273273
/// @custom:security-contact [email protected]
274274
contract Foo {␊
-2 Bytes
Binary file not shown.

packages/core/src/custom.test.ts.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Generated by [AVA](https://avajs.dev).
1010
1111
`// SPDX-License-Identifier: MIT␊
1212
// Compatible with OpenZeppelin Contracts ^5.0.0␊
13-
pragma solidity ^0.8.20;␊
13+
pragma solidity ^0.8.22;␊
1414
1515
contract MyContract {␊
1616
}␊
@@ -22,7 +22,7 @@ Generated by [AVA](https://avajs.dev).
2222
2323
`// SPDX-License-Identifier: MIT␊
2424
// Compatible with OpenZeppelin Contracts ^5.0.0␊
25-
pragma solidity ^0.8.20;␊
25+
pragma solidity ^0.8.22;␊
2626
2727
import "@openzeppelin/contracts/utils/Pausable.sol";␊
2828
import "@openzeppelin/contracts/access/Ownable.sol";␊
@@ -46,7 +46,7 @@ Generated by [AVA](https://avajs.dev).
4646
4747
`// SPDX-License-Identifier: MIT␊
4848
// Compatible with OpenZeppelin Contracts ^5.0.0␊
49-
pragma solidity ^0.8.20;␊
49+
pragma solidity ^0.8.22;␊
5050
5151
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
5252
@@ -64,7 +64,7 @@ Generated by [AVA](https://avajs.dev).
6464
6565
`// SPDX-License-Identifier: MIT␊
6666
// Compatible with OpenZeppelin Contracts ^5.0.0␊
67-
pragma solidity ^0.8.20;␊
67+
pragma solidity ^0.8.22;␊
6868
6969
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
7070
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";␊
@@ -95,7 +95,7 @@ Generated by [AVA](https://avajs.dev).
9595
9696
`// SPDX-License-Identifier: MIT␊
9797
// Compatible with OpenZeppelin Contracts ^5.0.0␊
98-
pragma solidity ^0.8.20;␊
98+
pragma solidity ^0.8.22;␊
9999
100100
contract MyContract {␊
101101
}␊
@@ -107,7 +107,7 @@ Generated by [AVA](https://avajs.dev).
107107
108108
`// SPDX-License-Identifier: MIT␊
109109
// Compatible with OpenZeppelin Contracts ^5.0.0␊
110-
pragma solidity ^0.8.20;␊
110+
pragma solidity ^0.8.22;␊
111111
112112
import "@openzeppelin/contracts/access/Ownable.sol";␊
113113
@@ -122,7 +122,7 @@ Generated by [AVA](https://avajs.dev).
122122
123123
`// SPDX-License-Identifier: MIT␊
124124
// Compatible with OpenZeppelin Contracts ^5.0.0␊
125-
pragma solidity ^0.8.20;␊
125+
pragma solidity ^0.8.22;␊
126126
127127
import "@openzeppelin/contracts/access/AccessControl.sol";␊
128128
@@ -139,7 +139,7 @@ Generated by [AVA](https://avajs.dev).
139139
140140
`// SPDX-License-Identifier: MIT␊
141141
// Compatible with OpenZeppelin Contracts ^5.0.0␊
142-
pragma solidity ^0.8.20;␊
142+
pragma solidity ^0.8.22;␊
143143
144144
import "@openzeppelin/contracts/access/manager/AccessManaged.sol";␊
145145
@@ -154,7 +154,7 @@ Generated by [AVA](https://avajs.dev).
154154
155155
`// SPDX-License-Identifier: MIT␊
156156
// Compatible with OpenZeppelin Contracts ^5.0.0␊
157-
pragma solidity ^0.8.20;␊
157+
pragma solidity ^0.8.22;␊
158158
159159
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
160160
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";␊

packages/core/src/custom.test.ts.snap

3 Bytes
Binary file not shown.

packages/core/src/environments/hardhat/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/src/environments/hardhat/upgradeable/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)