From 5a70917a91e02d33adaaf61b48d058b390569752 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Fri, 7 Jul 2023 17:20:03 +0200 Subject: [PATCH] client: Fix seeds for create_account() (#635) --- lib/client/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/src/client.rs b/lib/client/src/client.rs index 89ea14a61..bc5a5ad41 100644 --- a/lib/client/src/client.rs +++ b/lib/client/src/client.rs @@ -181,8 +181,8 @@ impl MangoClient { ) -> anyhow::Result<(Pubkey, Signature)> { let account = Pubkey::find_program_address( &[ - group.as_ref(), b"MangoAccount".as_ref(), + group.as_ref(), owner.pubkey().as_ref(), &account_num.to_le_bytes(), ],