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

Function GetAssetFromString

src/assetsdir.cpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91CAsset GetAssetFromString(const std::string& strasset) {
92 CAsset asset = gAssetsDir.GetAsset(strasset);
93 if (asset.IsNull() && strasset.size() == 64 && IsHex(strasset)) {
94 asset = CAsset(uint256S(strasset));
95 }
96 return asset;
97}
98
99// GLOBAL:
100CAssetsDir _gAssetsDir;

Callers 9

listunspentFunction · 0.85
ParseRecipientsFunction · 0.85
sendtoaddressFunction · 0.85
FundTransactionFunction · 0.85
reissueassetFunction · 0.85
listissuancesFunction · 0.85
destroyamountFunction · 0.85
transactions.cppFile · 0.85
AmountMapToUnivFunction · 0.85

Calls 6

IsHexFunction · 0.85
CAssetClass · 0.85
uint256SFunction · 0.85
GetAssetMethod · 0.80
IsNullMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected