Skip to content

Commit

Permalink
fix(lib): skip serializing validators if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuttymoon committed Apr 26, 2023
1 parent cf6049e commit 4a45bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ash_sdk/src/avalanche/subnets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct AvalancheSubnet {
/// List of the Subnet's blockchains
pub blockchains: Vec<AvalancheBlockchain>,
/// List of the Subnet's validators
#[serde(default)]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub validators: Vec<AvalancheSubnetValidator>,
}

Expand Down

0 comments on commit 4a45bec

Please sign in to comment.