From c52b60d72a1140898cf515a4566b519a76c8ee7f 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 ++-- .../token/src/erc721/extensions/erc721_uri_storage.cairo | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3772ec8a2..dd3fe1fe2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +<<<<<<< HEAD - TimelockController component (#996) - HashCall implementation (#996) - Separated package for each submodule (#1065) @@ -22,6 +23,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `openzeppelin_token` - `openzeppelin_upgrades` - `openzeppelin_utils` +======= +- ERC721URIStorage (#1031) +>>>>>>> e4e7368 (updated cairo version) ### Changed @@ -40,9 +44,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/packages/token/src/erc721/extensions/erc721_uri_storage.cairo b/packages/token/src/erc721/extensions/erc721_uri_storage.cairo index 1784ddddd..43554a8c3 100644 --- a/packages/token/src/erc721/extensions/erc721_uri_storage.cairo +++ b/packages/token/src/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]