Skip to content

Commit

Permalink
Fix asset deserialization of metadata_hash field when it is missed
Browse files Browse the repository at this point in the history
  • Loading branch information
eksandral committed Jun 3, 2024
1 parent 97a21c4 commit 97fc5b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion algonaut_algod/src/models/asset_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ pub struct AssetParams {
#[serde(
rename = "metadata-hash",
skip_serializing_if = "Option::is_none",
deserialize_with = "deserialize_opt_hash"
deserialize_with = "deserialize_opt_hash",
default
)]
pub metadata_hash: Option<HashDigest>,
/// \\[an\\] Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.
Expand Down

0 comments on commit 97fc5b6

Please sign in to comment.