Skip to content

Commit

Permalink
Add Default for OptimizationRuns field
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Dec 28, 2023
1 parent 1e14a91 commit 1541878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub struct Metadata {
pub optimization_used: u64,

/// The number of optimizations performed.
#[serde(deserialize_with = "deserialize_stringified_u64", alias = "OptimizationRuns")]
#[serde(deserialize_with = "deserialize_stringified_u64", alias = "OptimizationRuns", default)]
pub runs: u64,

/// The constructor arguments the contract was deployed with.
Expand Down

0 comments on commit 1541878

Please sign in to comment.