We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CreatedReplyKey
1 parent 30a58f7 commit 12b4babCopy full SHA for 12b4bab
payjoin/src/send/v2/mod.rs
@@ -161,7 +161,7 @@ impl<State: SenderState> core::ops::DerefMut for Sender<State> {
161
fn deref_mut(&mut self) -> &mut Self::Target { &mut self.state }
162
}
163
164
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, PartialEq, Eq)]
165
pub enum SenderTypeState {
166
Uninitialized(),
167
WithReplyKey(Sender<WithReplyKey>),
payjoin/src/send/v2/session.rs
@@ -78,7 +78,7 @@ impl SessionHistory {
78
79
pub fn endpoint(&self) -> Option<&Url> {
80
self.events.iter().find_map(|event| match event {
81
- SessionEvent::V2GetContext(ctx) => Some(&ctx.endpoint),
+ SessionEvent::CreatedReplyKey(proposal) => Some(&proposal.v1.endpoint),
82
_ => None,
83
})
84
0 commit comments