From ce5889a5f121663e35a8f5173f5b90aedace6217 Mon Sep 17 00:00:00 2001 From: Nicolas Pennie Date: Thu, 22 Jun 2023 15:41:19 -0700 Subject: [PATCH] feat(api): expose burnt field --- digital_asset_types/src/dapi/common/asset.rs | 1 + digital_asset_types/src/rpc/asset.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/digital_asset_types/src/dapi/common/asset.rs b/digital_asset_types/src/dapi/common/asset.rs index 43f01856b..64f19306d 100644 --- a/digital_asset_types/src/dapi/common/asset.rs +++ b/digital_asset_types/src/dapi/common/asset.rs @@ -367,6 +367,7 @@ pub fn asset_to_rpc(asset: FullAsset) -> Result { total: u.get("total").and_then(|t| t.as_u64()).unwrap_or(0), remaining: u.get("remaining").and_then(|t| t.as_u64()).unwrap_or(0), }), + burnt: asset.burnt, }) } diff --git a/digital_asset_types/src/rpc/asset.rs b/digital_asset_types/src/rpc/asset.rs index 9357ed493..943b78a3a 100644 --- a/digital_asset_types/src/rpc/asset.rs +++ b/digital_asset_types/src/rpc/asset.rs @@ -355,4 +355,5 @@ pub struct Asset { pub uses: Option, pub supply: Option, pub mutable: bool, + pub burnt: bool, }