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
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
### Breaking changes
4
4
5
5
-`ERC1967Utils`: Removed duplicate declaration of the `Upgraded`, `AdminChanged` and `BeaconUpgraded` events. These events are still available through the `IERC1967` interface located under the `contracts/interfaces/` directory. Minimum pragma version is now 0.8.21.
6
-
-`Governor`, `GovernorCountingSimple`: The `_countVotes` virtual function now returns an `uint256` with the total votes casted. This change allows for more flexibility for partial and fractional voting. Upgrading users may get a compilation error that can be fixed by adding a return statement to the `_countVotes` function.
6
+
-`Governor`, `GovernorCountingSimple`: The `_countVotes` virtual function now returns an `uint256` with the total votes casted. This change allows for more flexibility for partial and fractional voting. Upgrading users may get a compilation error that can be fixed by adding a return statement to the `_countVotes` function.
7
7
8
8
### Custom error changes
9
9
@@ -14,6 +14,9 @@ This version comes with changes to the custom error identifiers. Contracts previ
14
14
- Replace `Clones.Create2InsufficientBalance` with `Errors.InsufficientBalance`
15
15
- Replace `Clones.ERC1167FailedCreateClone` with `Errors.FailedDeployment`
16
16
- Replace `Clones.Create2FailedDeployment` with `Errors.FailedDeployment`
17
+
-`SafeERC20`: Replace `Address.AddressEmptyCode` with `SafeERC20FailedOperation` if there is no code at the token's address.
18
+
-`SafeERC20`: Replace generic `Error(string)` with `SafeERC20FailedOperation` if the returned data can't be decoded as `bool`.
19
+
-`SafeERC20`: Replace generic `SafeERC20FailedOperation` with the revert message from the contract call if it fails.
0 commit comments