Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit a8e5966

Browse files
committed
Account for missing refund_onchain_address field
We allow de/serializing if the field is absent.
1 parent 60f4900 commit a8e5966

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lsps1/msgs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ pub struct OrderParameters {
108108
/// May contain arbitrary associated data like a coupon code or a authentication token.
109109
pub token: Option<String>,
110110
/// The address where the LSP will send the funds if the order fails.
111+
#[serde(default)]
112+
#[serde(skip_serializing_if = "Option::is_none")]
111113
#[serde(with = "unchecked_address_option")]
112114
pub refund_onchain_address: Option<Address>,
113115
/// Indicates if the channel should be announced to the network.

0 commit comments

Comments
 (0)