Skip to content

Commit

Permalink
fix: serialize remote_data setting (#1705)
Browse files Browse the repository at this point in the history
* fix: serialize remote_data setting

* refactor: remove dead code
  • Loading branch information
hugocaillard authored Mar 4, 2025
1 parent 329174e commit ae03553
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/clarity-repl/src/repl/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ impl fmt::Display for ApiUrl {
#[derive(Debug, Default, Clone, Deserialize, Serialize)]
pub struct Settings {
pub analysis: analysis::Settings,
#[serde(skip_serializing_if = "RemoteDataSettings::is_disabled")]
pub remote_data: RemoteDataSettings,
#[serde(skip_serializing, skip_deserializing)]
pub clarity_wasm_mode: bool,
Expand Down Expand Up @@ -172,8 +171,4 @@ impl RemoteDataSettings {
is_mainnet: info.network_id == 1,
})
}

pub fn is_disabled(&self) -> bool {
!self.enabled
}
}

0 comments on commit ae03553

Please sign in to comment.