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?;