Skip to content

Commit

Permalink
review: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Feb 3, 2025
1 parent 99309ea commit f13180e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions near-contract-standards/src/contract_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ pub struct ContractSourceMetadata {
/// Some("1.0.0".into())
/// # ;
/// ```
/// ```rust,no_run
/// # let version: Option<String> =
/// // Git commit
/// Some("39f2d2646f2f60e18ab53337501370dc02a5661c".into())
/// # ;
/// ```
pub version: Option<String>,
/// Optional URL to source code repository/tree
///
Expand All @@ -29,13 +35,19 @@ pub struct ContractSourceMetadata {
/// ```rust,no_run
/// # let link: Option<String> =
/// // GitHub URL
/// Some("https://github.com/near-examples/nft-tutorial".into())
/// Some("https://github.com/org/repo/tree/8d8a8a0fe86a1d8eb3bce45f04ab1a65fecf5a1b".into())
/// # ;
/// ```
/// ```rust,no_run
/// # let link: Option<String> =
/// // GitHub URL
/// Some("https://github.com/org/repo/tree/8d8a8a0fe86a1d8eb3bce45f04ab1a65fecf5a1b".into())
/// Some("https://github.com/near-examples/nft-tutorial".into())
/// # ;
/// ```
/// ```rust,no_run
/// # let link: Option<String> =
/// // IPFS CID
/// Some("bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq".into())
/// # ;
/// ```
pub link: Option<String>,
Expand Down Expand Up @@ -99,7 +111,7 @@ mod build_info {
use near_sdk::serde::{Deserialize, Serialize};

/// Defines all required details for formal WASM build reproducibility verification
/// according to [**NEP-330 standard**](https://github.com/near/NEPs/blob/master/neps/nep-0330.md)
/// according to [**NEP-330 standard 1.2.0 revision**](https://github.com/near/NEPs/blob/master/neps/nep-0330.md)
#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize)]
#[serde(crate = "near_sdk::serde")]
pub struct BuildInfo {
Expand Down

0 comments on commit f13180e

Please sign in to comment.