Skip to content

Commit

Permalink
updated cairo version
Browse files Browse the repository at this point in the history
  • Loading branch information
gerceboss committed Jul 15, 2024
1 parent eacbd42 commit 507eadb
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 @@ -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)
Expand All @@ -22,9 +26,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)

Check failure on line 30 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Lint and test

Multiple consecutive blank lines [Expected: 1; Actual: 2]

CHANGELOG.md:30 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]

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 src/token/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 507eadb

Please sign in to comment.