Skip to content

Commit

Permalink
fix: integration tests use plerkle_serialization deserializers
Browse files Browse the repository at this point in the history
  • Loading branch information
kespinola committed Feb 27, 2024
1 parent b5a4ec4 commit 8f184d1
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions integration_tests/tests/integration_tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@ use migration::sea_orm::{
use migration::{Migrator, MigratorTrait};
use mpl_token_metadata::accounts::Metadata;

use nft_ingester::{
config,
plerkle::{
use nft_ingester::config;
use once_cell::sync::Lazy;
use plerkle_serialization::{
deserializer::{
parse_account_keys, parse_message_instructions, parse_meta_inner_instructions,
parse_pubkey, parse_signature, parse_slice,
},
root_as_account_info, root_as_transaction_info,
serializer::{seralize_encoded_transaction_with_status, serialize_account},
solana_geyser_plugin_interface_shims::ReplicaAccountInfoV2,
};
use once_cell::sync::Lazy;
use plerkle_serialization::root_as_account_info;
use plerkle_serialization::root_as_transaction_info;
use plerkle_serialization::serializer::serialize_account;
use plerkle_serialization::solana_geyser_plugin_interface_shims::ReplicaAccountInfoV2;
use program_transformers::{AccountInfo, ProgramTransformer, TransactionInfo};

use solana_client::nonblocking::rpc_client::RpcClient;
Expand All @@ -40,8 +39,6 @@ use futures::TryStreamExt;
use tokio_stream::{self as stream};

use log::{error, info};
use plerkle_serialization::serializer::seralize_encoded_transaction_with_status;
// use rand::seq::SliceRandom;
use serde::de::DeserializeOwned;
use solana_account_decoder::{UiAccount, UiAccountEncoding};
use solana_client::{
Expand Down Expand Up @@ -441,7 +438,6 @@ pub async fn index_transaction(setup: &TestSetup, sig: Signature) {
.expect("failed to parse transaction"),
meta_inner_instructions: &parse_meta_inner_instructions(
txn.compiled_inner_instructions(),
txn.inner_instructions(),
)
.expect("failed to parse transaction"),
})
Expand Down

0 comments on commit 8f184d1

Please sign in to comment.