You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,20 @@
7
7
The following contracts and libraries were added:
8
8
9
9
-`AccessManager`: A consolidated system for managing access control in complex systems.
10
-
- `AccessManaged`: A module for connecting a contract to an authority in charge of its access control.
11
-
- `GovernorTimelockAccess`: An adapter for time-locking governance proposals using an `AccessManager`.
12
-
- `AuthorityUtils`: A library of utilities for interacting with authority contracts.
10
+
-`AccessManaged`: A module for connecting a contract to an authority in charge of its access control.
11
+
-`GovernorTimelockAccess`: An adapter for time-locking governance proposals using an `AccessManager`.
12
+
-`AuthorityUtils`: A library of utilities for interacting with authority contracts.
13
13
-`GovernorStorage`: A Governor module that stores proposal details in storage.
14
14
-`ERC2771Forwarder`: An ERC2771 forwarder for meta transactions.
15
15
-`ERC1967Utils`: A library with ERC1967 events, errors and getters.
16
16
-`Nonces`: An abstraction for managing account nonces.
17
17
-`MessageHashUtils`: A library for producing digests for ECDSA operations.
18
-
-`Time`: A library with helpers for manipulating time-related objects.
18
+
-`Time`: A library with helpers for manipulating time-related objects.
19
19
20
20
### Removals Summary
21
21
22
22
The following contracts, libraries, and functions were removed:
23
-
23
+
24
24
-`Address.isContract` (because of its ambiguous nature and potential for misuse)
25
25
-`Checkpoints.History`
26
26
-`Counters`
@@ -127,7 +127,7 @@ These removals were implemented in the following PRs: [#3637](https://github.com
127
127
-`ERC1155`: Removed check for address zero in `balanceOf`. ([#4263](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4263))
128
128
-`ERC1155`: Optimized array accesses by skipping bounds checking when unnecessary. ([#4300](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4300))
129
129
-`ERC1155`: Bubble errors triggered in the `onERC1155Received` and `onERC1155BatchReceived` hooks. ([#4314](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4314))
130
-
-`ERC1155Supply`: Added a `totalSupply()` function that returns the total amount of token circulating, this change will restrict the total tokens minted across all ids to 2**256-1 . ([#3962](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3962))
130
+
-`ERC1155Supply`: Added a `totalSupply()` function that returns the total amount of token circulating, this change will restrict the total tokens minted across all ids to 2\*\*256-1 . ([#3962](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3962))
131
131
-`ERC1155Receiver`: Removed in favor of `ERC1155Holder`. ([#4450](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4450))
132
132
133
133
#### Utils
@@ -194,6 +194,27 @@ function supportsInterface(bytes4 interfaceId) public view virtual override retu
194
194
}
195
195
```
196
196
197
+
#### SafeMath
198
+
199
+
Methods in SafeMath superseded by native overflow checks in Solidity 0.8.0 were removed along with operations providing an interface for revert strings. The remaining methods were moved to `utils/Math.sol`.
Custom Governor modules that override internal functions may require modifications if migrated to v5. In particular, the new internal functions `_queueOperations` and `_executeOperations` may need to be used. If assistance with this migration is needed reach out via the [OpenZeppelin Support Forum](https://forum.openzeppelin.com/c/support/contracts/18).
@@ -209,7 +230,7 @@ The `ECDSA` library is now focused on signer recovery. Previously it also includ
209
230
contract Verifier {
210
231
using ECDSA for bytes32;
211
232
+ using MessageHashUtils for bytes32;
212
-
233
+
213
234
function _verify(bytes32 data, bytes memory signature, address account) internal pure returns (bool) {
0 commit comments