Skip to content

Commit

Permalink
Derive Default for GenesisJson (#1830)
Browse files Browse the repository at this point in the history
derive Default for GenesisJson
  • Loading branch information
tcoratger authored Apr 15, 2024
1 parent 371c121 commit 0227d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/katana/primitives/src/genesis/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub struct GenesisClassJson {
pub class_hash: Option<ClassHash>,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Default)]
#[serde(rename_all = "camelCase")]
pub struct FeeTokenConfigJson {
pub name: String,
Expand Down Expand Up @@ -199,7 +199,7 @@ pub enum GenesisJsonError {
/// (eg, using `serde_json`).
///
/// The path of the class artifact are computed **relative** to the JSON file.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Default)]
#[serde(rename_all = "camelCase")]
pub struct GenesisJson {
pub parent_hash: BlockHash,
Expand Down

0 comments on commit 0227d37

Please sign in to comment.