chore(config): skip serializing nip07 if Option::is_none
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -77,7 +77,7 @@ pub struct CliConfig {
|
|||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub keyring_secret_key: bool,
|
pub keyring_secret_key: bool,
|
||||||
/// Signs events using the browser's NIP-07 extension.
|
/// Signs events using the browser's NIP-07 extension.
|
||||||
#[serde(default)]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub nip07: Option<SocketAddr>,
|
pub nip07: Option<SocketAddr>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user