We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab9e14 commit 2562519Copy full SHA for 2562519
rust/catalyst-types/src/id_uri/mod.rs
@@ -210,9 +210,12 @@ impl IdUri {
210
/// use catalyst_types::id_uri::IdUri;
211
/// use chrono::Utc;
212
///
213
- /// let id_uri = IdUri::default();
+ /// let id_uri = "id.catalyst://cardano/FftxFnOrj2qmTuB2oZG2v0YEWJfKvQ9Gg8AgNAhDsKE"
214
+ /// .parse::<IdUri>()
215
+ /// .unwrap();
216
+ /// assert!(id_uri.nonce().is_none());
217
/// let id_uri_with_nonce = id_uri.with_nonce();
- /// assert!(id_uri_with_nonce.nonce.is_some());
218
+ /// assert!(id_uri_with_nonce.nonce().is_some());
219
/// ```
220
#[must_use]
221
pub fn with_nonce(self) -> Self {
0 commit comments