MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetIdentifier

Method GetIdentifier

src/assetsdir.cpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75std::string CAssetsDir::GetIdentifier(const CAsset& asset) const
76{
77 const std::string label = GetMetadata(asset).GetLabel();
78 if (!label.empty()) return label;
79 return asset.GetHex();
80}
81
82std::vector<CAsset> CAssetsDir::GetKnownAssets() const
83{

Callers 2

addAssetChoiceMethod · 0.80
formatAssetAmountFunction · 0.80

Calls 3

GetLabelMethod · 0.80
emptyMethod · 0.45
GetHexMethod · 0.45

Tested by

no test coverage detected