| 89 | } |
| 90 | |
| 91 | CAsset 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: |
| 100 | CAssetsDir _gAssetsDir; |
no test coverage detected