Skip to content

Commit

Permalink
Merge branch 'master' into bitzoic-303
Browse files Browse the repository at this point in the history
  • Loading branch information
K1-R1 authored Oct 29, 2024
2 parents f6acf8c + 2aed0ca commit 8f093ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/asset/metadata_docs/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ storage {
}
// ANCHOR_END: src7_storage

// ANCHOR src7_metadata_convenience_function
// ANCHOR: src7_metadata_convenience_function
impl SRC7 for Contract {
#[storage(read)]
fn metadata(asset: AssetId, key: String) -> Option<Metadata> {
_metadata(storage.metadata, asset, key)
}
}
// ANCHOR src7_metadata_convenience_function
// ANCHOR_END: src7_metadata_convenience_function

// ANCHOR: src7_set_metadata
impl SetAssetMetadata for Contract {
Expand Down

0 comments on commit 8f093ed

Please sign in to comment.