diff --git a/solana/solana-ibc/programs/solana-ibc/src/execution_context.rs b/solana/solana-ibc/programs/solana-ibc/src/execution_context.rs index 0e1121df..89698f3f 100644 --- a/solana/solana-ibc/programs/solana-ibc/src/execution_context.rs +++ b/solana/solana-ibc/programs/solana-ibc/src/execution_context.rs @@ -253,8 +253,8 @@ impl ExecutionContext for IbcStorage<'_, '_> { let mut store = self.0.borrow_mut(); store .private - .connection_to_client - .insert(conn_id.to_string(), client_connection_path.0.to_string()); + .client_to_connection + .insert(client_connection_path.0.to_string(), conn_id.to_string()); Ok(()) } diff --git a/solana/solana-ibc/programs/solana-ibc/src/lib.rs b/solana/solana-ibc/programs/solana-ibc/src/lib.rs index eaa11917..227d7540 100644 --- a/solana/solana-ibc/programs/solana-ibc/src/lib.rs +++ b/solana/solana-ibc/programs/solana-ibc/src/lib.rs @@ -201,7 +201,7 @@ pub struct PrivateStorage { pub connections: BTreeMap, pub channel_ends: BTreeMap<(InnerPortId, InnerChannelId), InnerChannelEnd>, // Contains the client id corresponding to the connectionId - pub connection_to_client: BTreeMap, + pub client_to_connection: BTreeMap, /// The port and channel id tuples of the channels. pub port_channel_id_set: Vec<(InnerPortId, InnerChannelId)>, pub channel_counter: u64,