Skip to content

Commit

Permalink
Make Metadata json symbol optional in asset_api
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Jul 26, 2023
1 parent 9f9e172 commit 7307c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion consumer/src/asset_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ pub struct Metadata {
pub attributes: Option<Vec<Attribute>>,
pub description: Option<String>,
pub name: String,
pub symbol: String,
pub symbol: Option<String>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
Expand Down
4 changes: 2 additions & 2 deletions consumer/src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl Processor {
metadata: Some(Metadata {
name: metadata.name,
description: metadata.description,
symbol: metadata.symbol,
symbol: metadata.symbol.unwrap_or_default(),
attributes,
uri: collection.content.json_uri,
image,
Expand Down Expand Up @@ -289,7 +289,7 @@ impl Processor {
metadata: Some(Metadata {
name: metadata.name,
description: metadata.description,
symbol: metadata.symbol,
symbol: metadata.symbol.unwrap_or_default(),
attributes,
uri: asset.content.json_uri,
image,
Expand Down

0 comments on commit 7307c59

Please sign in to comment.