From a436353d1d707b796bef6496a9bcf9e01e2cd133 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Mon, 8 Mar 2021 19:16:46 +0100 Subject: [PATCH 1/2] make ERC1155.uri public --- contracts/token/ERC1155/ERC1155.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/token/ERC1155/ERC1155.sol b/contracts/token/ERC1155/ERC1155.sol index 90746a24f00..ed2d8056f2d 100644 --- a/contracts/token/ERC1155/ERC1155.sol +++ b/contracts/token/ERC1155/ERC1155.sol @@ -55,7 +55,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ - function uri(uint256) external view virtual override returns (string memory) { + function uri(uint256) public view virtual override returns (string memory) { return _uri; } From 34e48ab09a6c2bc010635c5dd1c4a10f8f9beeea Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Mon, 8 Mar 2021 19:18:24 +0100 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfdd7505169..93a70f4d00c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ * `ERC721URIStorage`: Add a new extension that implements the `_setTokenURI` behavior as it was available in 3.4.0. ([#2555](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2555)) * `AccessControl`: Added ERC165 interface detection. ([#2562](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2562)) * `AccessControlEnumerable`: Fixed `renounceRole` not updated underlying set. ([#2572](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2572)) + * `ERC1155`: Make `uri` public so overloading function can call it using super. ([#2576](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2576)) ### How to upgrade from 3.x