Skip to content

Commit b4f18c0

Browse files
committed
remove irrelevant fields from RPC session response
1 parent f67bb57 commit b4f18c0

File tree

1 file changed

+0
-6
lines changed
  • mm2src/kdf_walletconnect/src/session

1 file changed

+0
-6
lines changed

mm2src/kdf_walletconnect/src/session/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ pub enum SessionType {
4343
pub struct SessionRpcInfo {
4444
pub topic: Topic,
4545
pub metadata: Metadata,
46-
pub peer_pubkey: String,
4746
pub pairing_topic: Topic,
4847
pub namespaces: BTreeMap<String, Namespace>,
49-
pub subscription_id: SubscriptionId,
50-
pub properties: Option<SessionProperties>,
5148
pub expiry: u64,
5249
}
5350

@@ -188,11 +185,8 @@ impl From<Session> for SessionRpcInfo {
188185
Self {
189186
topic: value.topic,
190187
metadata: value.controller.metadata,
191-
peer_pubkey: value.controller.public_key,
192188
pairing_topic: value.pairing_topic,
193189
namespaces: value.namespaces,
194-
subscription_id: value.subscription_id,
195-
properties: value.session_properties,
196190
expiry: value.expiry,
197191
}
198192
}

0 commit comments

Comments
 (0)