From fd7c4ba8f0f08ebb70762f1ee48250d5cad5fc48 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Mon, 10 Jan 2022 23:47:43 +0100 Subject: [PATCH] Update pragma in utils/Address.sol to 0.8.1 (#3098) --- CHANGELOG.md | 4 ++++ contracts/utils/Address.sol | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b27ca352f79..b1600733fdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ * `Base64`: add a library to parse bytes into base64 strings using `encode(bytes memory)` function, and provide examples to show how to use to build URL-safe `tokenURIs`. ([#2884](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/#2884)) * `ERC20`: reduce allowance before triggering transfer. ([#3056](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/#3056)) +### Breaking change + +Solidity pragma in `utils/Address.sol` is increased from `^0.8.0` to `^0.8.1`. This is required by the `account.code.length` syntax that replaces inline assembly. This may require users to bump their compiler version from `0.8.0` to `0.8.1` or later. Note that other parts of the code already include stricter requirements. + ## 4.4.1 (2021-12-14) * `Initializable`: change the existing `initializer` modifier and add a new `onlyInitializing` modifier to prevent reentrancy risk. ([#3006](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3006)) diff --git a/contracts/utils/Address.sol b/contracts/utils/Address.sol index 698d271458e..f18cc78d87a 100644 --- a/contracts/utils/Address.sol +++ b/contracts/utils/Address.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) -pragma solidity ^0.8.0; +pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type