From 8ea060de44846806e97e016af501b849dd2aaa32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Fri, 12 Jan 2024 09:17:20 +0100 Subject: [PATCH] Update example --- bindings/core/src/method/secret_manager.rs | 2 +- sdk/examples/client/output/build_account_output.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/core/src/method/secret_manager.rs b/bindings/core/src/method/secret_manager.rs index a4298f2b1e..2a13acbca0 100644 --- a/bindings/core/src/method/secret_manager.rs +++ b/bindings/core/src/method/secret_manager.rs @@ -99,7 +99,7 @@ pub enum SecretManagerMethod { /// Expected response: [`Ok`](crate::Response::Ok) #[cfg(feature = "stronghold")] #[cfg_attr(docsrs, doc(cfg(feature = "stronghold")))] - ClearStrongholdPassword + ClearStrongholdPassword, } #[cfg(test)] diff --git a/sdk/examples/client/output/build_account_output.rs b/sdk/examples/client/output/build_account_output.rs index a86d95785d..eb5f5f8661 100644 --- a/sdk/examples/client/output/build_account_output.rs +++ b/sdk/examples/client/output/build_account_output.rs @@ -49,9 +49,9 @@ async fn main() -> Result<()> { // Account id needs to be null the first time let account_output = AccountOutputBuilder::new_with_minimum_amount(storage_score_params, AccountId::null()) .add_feature(SenderFeature::new(address.clone())) - .add_feature(MetadataFeature::new([(metadata.to_vec(), metadata.to_vec())])?) + .add_feature(MetadataFeature::new([(b"data".to_vec(), metadata.to_vec())])?) .add_immutable_feature(IssuerFeature::new(address.clone())) - .add_immutable_feature(MetadataFeature::new([(metadata.to_vec(), metadata.to_vec())])?) + .add_immutable_feature(MetadataFeature::new([(b"data".to_vec(), metadata.to_vec())])?) .add_unlock_condition(AddressUnlockCondition::new(address)) .finish_output()?;