diff --git a/cli/src/config.rs b/cli/src/config.rs index 146aad1df..006ea1b9e 100644 --- a/cli/src/config.rs +++ b/cli/src/config.rs @@ -37,6 +37,7 @@ impl Config { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct PriceServerWrapper { + #[serde(default = "bool_true")] pub enabled: bool, #[serde(default)] pub config: PriceServerConfig, @@ -52,6 +53,7 @@ impl Default for PriceServerWrapper { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct PriceFeedConfigWrapper { + #[serde(default = "bool_true")] pub enabled: bool, #[serde(default)] pub config: PriceFeedConfig, @@ -64,3 +66,7 @@ impl Default for PriceFeedConfigWrapper { } } } + +fn bool_true() -> bool { + true +}