Skip to content

Commit 32e7a6f

Browse files
ernestognwAmxx
andauthored
Add equal to Bytes.sol and update pragma to 0.8.24 in String dependencies (#5726)
Co-authored-by: Hadrien Croubois <[email protected]>
1 parent 6cfb6b5 commit 32e7a6f

39 files changed

+57
-36
lines changed

.changeset/ten-steaks-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': minor
3+
---
4+
5+
`Bytes`: Add an `equal` function to compare byte buffers.

CHANGELOG.md

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

33

4+
### Breaking changes
5+
6+
- Update minimum pragma to 0.8.24 in `Votes`, `VotesExtended`, `ERC20Votes`, `Strings`, `ERC1155URIStorage`, `MessageHashUtils`, `ERC721URIStorage`, `ERC721Votes`, `ERC721Wrapper`, `ERC721Burnable`, `ERC721Consecutive`, `ERC721Enumerable`, `ERC721Pausable`, `ERC721Royalty`, `ERC721Wrapper`, `EIP712`, and `ERC7739`. ([#5726](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5726))
7+
48
## 5.4.0 (2025-07-17)
59

610
### Breaking changes

contracts/governance/utils/Votes.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// OpenZeppelin Contracts (last updated v5.2.0) (governance/utils/Votes.sol)
3-
pragma solidity ^0.8.20;
3+
pragma solidity ^0.8.24;
44

55
import {IERC5805} from "../../interfaces/IERC5805.sol";
66
import {Context} from "../../utils/Context.sol";

contracts/governance/utils/VotesExtended.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// OpenZeppelin Contracts (last updated v5.2.0) (governance/utils/VotesExtended.sol)
3-
pragma solidity ^0.8.20;
3+
pragma solidity ^0.8.24;
44

55
import {Checkpoints} from "../../utils/structs/Checkpoints.sol";
66
import {Votes} from "./Votes.sol";

contracts/metatx/ERC2771Forwarder.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
// OpenZeppelin Contracts (last updated v5.3.0) (metatx/ERC2771Forwarder.sol)
33

4-
pragma solidity ^0.8.20;
4+
pragma solidity ^0.8.24;
55

66
import {ERC2771Context} from "./ERC2771Context.sol";
77
import {ECDSA} from "../utils/cryptography/ECDSA.sol";

contracts/mocks/EIP712Verifier.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
pragma solidity ^0.8.20;
3+
pragma solidity ^0.8.24;
44

55
import {ECDSA} from "../utils/cryptography/ECDSA.sol";
66
import {EIP712} from "../utils/cryptography/EIP712.sol";

contracts/mocks/VotesExtendedMock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
pragma solidity ^0.8.20;
3+
pragma solidity ^0.8.24;
44

55
import {VotesExtended} from "../governance/utils/VotesExtended.sol";
66

contracts/mocks/VotesMock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
pragma solidity ^0.8.20;
3+
pragma solidity ^0.8.24;
44

55
import {Votes} from "../governance/utils/Votes.sol";
66

contracts/mocks/docs/MyNFT.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// contracts/MyNFT.sol
22
// SPDX-License-Identifier: MIT
3-
pragma solidity ^0.8.20;
3+
pragma solidity ^0.8.24;
44

55
import {ERC721} from "../../token/ERC721/ERC721.sol";
66

contracts/mocks/docs/governance/MyToken.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.20;
2+
pragma solidity ^0.8.24;
33

44
import {ERC20} from "../../../token/ERC20/ERC20.sol";
55
import {ERC20Permit} from "../../../token/ERC20/extensions/ERC20Permit.sol";

0 commit comments

Comments
 (0)