diff --git a/programs/compressed-pda/tests/test.rs b/programs/compressed-pda/tests/test.rs index 517a8d165e..15959ceab8 100644 --- a/programs/compressed-pda/tests/test.rs +++ b/programs/compressed-pda/tests/test.rs @@ -982,7 +982,13 @@ async fn regenerate_accounts() { for (name, pubkey) in pubkeys { // Fetch account data. Adjust this part to match how you retrieve and structure your account data. let account = context.banks_client.get_account(pubkey).await.unwrap(); + println!( + "{} DISCRIMINATOR {:?}", + name, + account.as_ref().unwrap().data[0..8].to_vec() + ); let account = CliAccount::new(&pubkey, &account.unwrap(), true); + // Serialize the account data to JSON. Adjust according to your data structure. let json_data = serde_json::to_vec(&account).unwrap(); @@ -995,7 +1001,6 @@ async fn regenerate_accounts() { async_write(file_path.clone(), json_data).await.unwrap(); } } - #[derive(Debug)] pub struct MockIndexer { pub merkle_tree_pubkey: Pubkey, diff --git a/scripts/getAccountState.sh b/scripts/getAccountState.sh index 5dc5394146..83d2369c57 100755 --- a/scripts/getAccountState.sh +++ b/scripts/getAccountState.sh @@ -7,4 +7,4 @@ # group_pda # # to add more accounts to regenerate, add them to setup_test_programs_with_accounts and test script -cd programs/compressed-pda && cargo test-sbf regenerate_accounts -- --ignored && cd - \ No newline at end of file +cd programs/compressed-pda && cargo test-sbf regenerate_accounts -- --ignored --nocapture && cd - \ No newline at end of file