Skip to content

Commit

Permalink
derive Default for GenesisJson
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Apr 14, 2024
1 parent 64fa43c commit 92489a4
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 92489a4

Please sign in to comment.