Skip to content

Commit

Permalink
updated cairo version
Browse files Browse the repository at this point in the history
  • Loading branch information
gerceboss committed Aug 5, 2024
1 parent a12f5e5 commit c52b60d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand All @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/api/erc721.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ See <<IERC721-Transfer,IERC721::Transfer>>.

[.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;
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/token/src/erc721/extensions/erc721_uri_storage.cairo
Original file line number Diff line number Diff line change
@@ -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
///
Expand All @@ -15,7 +15,7 @@ pub mod ERC721URIStorageComponent {

#[storage]
struct Storage {
ERC721URIStorage_token_uris: LegacyMap<u256, ByteArray>,
ERC721URIStorage_token_uris: Map<u256, ByteArray>,
}

#[event]
Expand Down

0 comments on commit c52b60d

Please sign in to comment.