From e4e73685e430bb8f4dba9e6442504966e988275e Mon Sep 17 00:00:00 2001 From: gerceboss Date: Tue, 16 Jul 2024 01:44:56 +0530 Subject: [PATCH] updated cairo version --- CHANGELOG.md | 7 ++++--- docs/modules/ROOT/pages/api/erc721.adoc | 4 ++-- src/token/erc721/extensions/erc721_uri_storage.cairo | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1550bd44c..8e5e2e260 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- ERC721URIStorage (#1031) + ### Changed - Bump scarb to v2.7.0-rc.1 (#1025) @@ -23,9 +27,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Removed `num_checkpoints` and `checkpoints` from `ERC20VotesABI`. -### Added (2024-07-10) - -- ERC721URIStorage (#1031) ## 0.14.0 (2024-06-14) diff --git a/docs/modules/ROOT/pages/api/erc721.adoc b/docs/modules/ROOT/pages/api/erc721.adoc index 0ed8bca74..7162bf8be 100644 --- a/docs/modules/ROOT/pages/api/erc721.adoc +++ b/docs/modules/ROOT/pages/api/erc721.adoc @@ -693,7 +693,7 @@ See <>. [.contract] [[ERC721URIStorageComponent]] -=== `++ERC721URIStorageComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.14.0/src/token/erc721/extensions/erc721_uri_storage.cairo[{github-icon},role=heading-link] +=== `++ERC721URIStorageComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.15.0-rc.0/src/token/erc721/extensions/erc721_uri_storage.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin::token::extensions::ERC721URIStorageComponent; @@ -708,7 +708,7 @@ NOTE: Implementing xref:#ERC721Component[ERC721Component] is a requirement for t The ERC721URIStorage component provides a flexible IERC721Metadata implementation that enables storage-based token URI management. The URI of any `token_id` can be set by calling the internal function, xref:#ERC721URIStorageComponent-set_token_uri[set_token_uri]. -Updated `token_uri` can be queried through the external function xref:#ERC721URIStorageComponent-token_uri[token_uri]. +The updated URI can be queried through the external function xref:#ERC721URIStorageComponent-token_uri[token_uri]. [.contract-index#ERC721URIStorageComponent-Embeddable-Impls] .Embeddable Implementations diff --git a/src/token/erc721/extensions/erc721_uri_storage.cairo b/src/token/erc721/extensions/erc721_uri_storage.cairo index 1784ddddd..43554a8c3 100644 --- a/src/token/erc721/extensions/erc721_uri_storage.cairo +++ b/src/token/erc721/extensions/erc721_uri_storage.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.14.0 (token/erc721/extensions/erc721_uri_storage.cairo) +// OpenZeppelin Contracts for Cairo v0.15.0-rc.0 (token/erc721/extensions/erc721_uri_storage.cairo) /// # ERC721URIStorage Component /// @@ -15,7 +15,7 @@ pub mod ERC721URIStorageComponent { #[storage] struct Storage { - ERC721URIStorage_token_uris: LegacyMap, + ERC721URIStorage_token_uris: Map, } #[event]