#![recursion_limit = "256"] use test_log::test; #[test(tokio::test)] async fn test_subaccount_creation() -> anyhow::Result<()> { let worker = workspaces::sandbox().await?; let account = worker.dev_create_account().await?; let sub = account .create_subaccount("subaccount") .transact() .await? .into_result()?; let expect_id = format!("subaccount.{}", account.id()); let actual_id = sub.id().to_string(); assert_eq!(actual_id, expect_id); Ok(()) }