Skip to content

Commit e4e7368

Browse files
committed
updated cairo version
1 parent f3d4273 commit e4e7368

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGELOG.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## Unreleased
1010

11+
### Added
12+
13+
- ERC721URIStorage (#1031)
14+
1115
### Changed
1216

1317
- 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
2327

2428
- Removed `num_checkpoints` and `checkpoints` from `ERC20VotesABI`.
2529

26-
### Added (2024-07-10)
27-
28-
- ERC721URIStorage (#1031)
2930

3031
## 0.14.0 (2024-06-14)
3132

docs/modules/ROOT/pages/api/erc721.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ See <<IERC721-Transfer,IERC721::Transfer>>.
693693

694694
[.contract]
695695
[[ERC721URIStorageComponent]]
696-
=== `++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]
696+
=== `++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]
697697

698698
```cairo
699699
use openzeppelin::token::extensions::ERC721URIStorageComponent;
@@ -708,7 +708,7 @@ NOTE: Implementing xref:#ERC721Component[ERC721Component] is a requirement for t
708708

709709
The ERC721URIStorage component provides a flexible IERC721Metadata implementation that enables storage-based token URI management.
710710
The URI of any `token_id` can be set by calling the internal function, xref:#ERC721URIStorageComponent-set_token_uri[set_token_uri].
711-
Updated `token_uri` can be queried through the external function xref:#ERC721URIStorageComponent-token_uri[token_uri].
711+
The updated URI can be queried through the external function xref:#ERC721URIStorageComponent-token_uri[token_uri].
712712

713713
[.contract-index#ERC721URIStorageComponent-Embeddable-Impls]
714714
.Embeddable Implementations

src/token/erc721/extensions/erc721_uri_storage.cairo

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
// OpenZeppelin Contracts for Cairo v0.14.0 (token/erc721/extensions/erc721_uri_storage.cairo)
2+
// OpenZeppelin Contracts for Cairo v0.15.0-rc.0 (token/erc721/extensions/erc721_uri_storage.cairo)
33

44
/// # ERC721URIStorage Component
55
///
@@ -15,7 +15,7 @@ pub mod ERC721URIStorageComponent {
1515

1616
#[storage]
1717
struct Storage {
18-
ERC721URIStorage_token_uris: LegacyMap<u256, ByteArray>,
18+
ERC721URIStorage_token_uris: Map<u256, ByteArray>,
1919
}
2020

2121
#[event]

0 commit comments

Comments
 (0)