From 8c1daaab57fdd390b2a7d89aa41e9a783068ee61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Thu, 11 Jun 2020 16:53:19 -0300 Subject: [PATCH 1/3] 3.1.0-rc.0 --- contracts/package.json | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/package.json b/contracts/package.json index 841cbe311..e82ab0881 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@openzeppelin/contracts", - "version": "3.0.2", + "version": "3.1.0-rc.0", "description": "Secure Smart Contract library for Solidity", "files": [ "**/*.sol", diff --git a/package-lock.json b/package-lock.json index dd5e1d9f4..f825f99dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "openzeppelin-solidity", - "version": "3.0.2", + "version": "3.1.0-rc.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e4f8146a5..a1260889f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openzeppelin-solidity", - "version": "3.0.2", + "version": "3.1.0-rc.0", "description": "Secure Smart Contract library for Solidity", "files": [ "/contracts/**/*.sol", From 02a6b05bde8172e2ba21746a173f4db3dcbcfc28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Fri, 12 Jun 2020 13:22:52 -0300 Subject: [PATCH 2/3] Update functionCall docs (cherry picked from commit 242400e9ea73b2ca173bee27aa6b9f24b7d1305e) --- contracts/utils/Address.sol | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/contracts/utils/Address.sol b/contracts/utils/Address.sol index cf445ccf7..1d952cc07 100644 --- a/contracts/utils/Address.sol +++ b/contracts/utils/Address.sol @@ -66,6 +66,9 @@ library Address { * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * + * Returns the raw returned data. To convert to the expected return value, + * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. + * * Requirements: * * - `target` must be a contract. @@ -88,18 +91,13 @@ library Address { } /** - * @dev Performs a Solidity function call using a low level `call`, - * transferring `value` wei. A plain`call` is an unsafe replacement for a - * function call: use this function instead. - * - * If `target` reverts with a revert reason, it is bubbled up by this - * function (like regular Solidity function calls). + * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], + * but also transferring `value` wei to `target`. * * Requirements: * - * - `target` must be a contract. * - the calling contract must have an ETH balance of at least `value`. - * - calling `target` with `data` must not revert. + * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ From de99bccbfd4ecd19d7369d01b070aa72c64423c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Tue, 23 Jun 2020 16:09:01 -0300 Subject: [PATCH 3/3] 3.1.0 --- CHANGELOG.md | 2 +- contracts/package.json | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07ddd738f..951053721 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 3.1.0 (unreleased) +## 3.1.0 (2020-06-23) ### New features * `SafeCast`: added functions to downcast signed integers (e.g. `toInt32`), improving usability of `SignedSafeMath`. ([#2243](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2243)) diff --git a/contracts/package.json b/contracts/package.json index e82ab0881..0592d6a2d 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@openzeppelin/contracts", - "version": "3.1.0-rc.0", + "version": "3.1.0", "description": "Secure Smart Contract library for Solidity", "files": [ "**/*.sol", diff --git a/package-lock.json b/package-lock.json index f825f99dd..03d4e1221 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "openzeppelin-solidity", - "version": "3.1.0-rc.0", + "version": "3.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a1260889f..18a00c6dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openzeppelin-solidity", - "version": "3.1.0-rc.0", + "version": "3.1.0", "description": "Secure Smart Contract library for Solidity", "files": [ "/contracts/**/*.sol",