Skip to content

Commit

Permalink
feat(api): expose burnt field
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasPennie authored and linuskendall committed Jul 27, 2023
1 parent 3ca1303 commit ce5889a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions digital_asset_types/src/dapi/common/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ pub fn asset_to_rpc(asset: FullAsset) -> Result<RpcAsset, DbErr> {
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,
})
}

Expand Down
1 change: 1 addition & 0 deletions digital_asset_types/src/rpc/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,5 @@ pub struct Asset {
pub uses: Option<Uses>,
pub supply: Option<Supply>,
pub mutable: bool,
pub burnt: bool,
}

0 comments on commit ce5889a

Please sign in to comment.