diff --git a/solana/solana-ibc/programs/solana-ibc/src/lib.rs b/solana/solana-ibc/programs/solana-ibc/src/lib.rs index 7146c716..72e441af 100644 --- a/solana/solana-ibc/programs/solana-ibc/src/lib.rs +++ b/solana/solana-ibc/programs/solana-ibc/src/lib.rs @@ -82,10 +82,9 @@ pub mod solana_ibc { .find(|&pack| pack == &serialized_packet) { Some(_) => (), - None => inner_store - .packets - .0 - .push(serialized_packet), + None => { + inner_store.packets.0.push(serialized_packet) + } } } _ => (), diff --git a/solana/solana-ibc/programs/solana-ibc/src/tests.rs b/solana/solana-ibc/programs/solana-ibc/src/tests.rs index cb5341a4..2295a124 100644 --- a/solana/solana-ibc/programs/solana-ibc/src/tests.rs +++ b/solana/solana-ibc/programs/solana-ibc/src/tests.rs @@ -24,8 +24,8 @@ use ibc_proto::google::protobuf::Any; use ibc_proto::protobuf::Protobuf; use crate::{ - accounts, instruction, AnyCheck, PrivateStorage, ID, - SOLANA_IBC_STORAGE_SEED, TRIE_SEED, PACKET_SEED, + accounts, instruction, AnyCheck, PrivateStorage, ID, PACKET_SEED, + SOLANA_IBC_STORAGE_SEED, TRIE_SEED, }; const CLIENT_CREATE_CLIENT: &str = "/ibc.core.client.v1.MsgCreateClient"; @@ -150,7 +150,7 @@ fn anchor_test_deliver() -> Result<()> { storage: solana_ibc_storage, trie, system_program: system_program::ID, - packets + packets, }) .args(instruction::Deliver { messages: all_messages }) .payer(authority.clone())