Skip to content

Commit

Permalink
feat: add token_standard to asset response (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
tahsintunan authored Oct 18, 2023
1 parent 3a465ee commit f0ab966
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions digital_asset_types/src/dapi/common/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ pub fn v1_content_from_json(
meta.set_item("symbol", symbol.clone());
}
}
let token_standard = safe_select(chain_data_selector, "$.token_standard");
if let Some(token_standard) = token_standard {
meta.set_item("token_standard", token_standard.clone());
}
let desc = safe_select(selector, "$.description");
if let Some(desc) = desc {
meta.set_item("description", desc.clone());
Expand Down

0 comments on commit f0ab966

Please sign in to comment.