From 98547c042063df1b4e9f6f8471540ed0fb8b2ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Thu, 11 Jan 2024 11:44:34 +0100 Subject: [PATCH] Update example --- sdk/examples/how_tos/native_tokens/create.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/examples/how_tos/native_tokens/create.rs b/sdk/examples/how_tos/native_tokens/create.rs index 467162c741..4989d8b3bf 100644 --- a/sdk/examples/how_tos/native_tokens/create.rs +++ b/sdk/examples/how_tos/native_tokens/create.rs @@ -73,7 +73,7 @@ async fn main() -> Result<()> { account_id: None, circulating_supply: U256::from(CIRCULATING_SUPPLY), maximum_supply: U256::from(MAXIMUM_SUPPLY), - foundry_metadata: Some(metadata.to_bytes()), + foundry_metadata: Some(metadata.try_into()?), }; let transaction = wallet.create_native_token(params, None).await?;