]> Git Repo - VerusCoin.git/blobdiff - src/pbaas/crosschainrpc.cpp
Build fix
[VerusCoin.git] / src / pbaas / crosschainrpc.cpp
index 8d9f03347f41b9b6fcb8104ad17011f0eca3082a..1e35c23da7447a536f596a505120a4852ef37ef4 100644 (file)
@@ -395,6 +395,7 @@ uint160 DecodeCurrencyName(std::string currencyStr)
     {
         return retVal;
     }
+    std::string copyStr = currencyStr;
     uint160 parent;
     currencyStr = CleanName(currencyStr, parent, true);
     if (!parent.IsNull() && CCurrencyDefinition::GetID(currencyStr, parent) == ASSETCHAINS_CHAINID)
@@ -404,7 +405,7 @@ uint160 DecodeCurrencyName(std::string currencyStr)
     CTxDestination currencyDest = DecodeDestination(currencyStr);
     if (currencyDest.which() == COptCCParams::ADDRTYPE_INVALID)
     {
-        currencyDest = DecodeDestination(currencyStr + "@");
+        currencyDest = DecodeDestination(copyStr + "@");
     }
     if (currencyDest.which() != COptCCParams::ADDRTYPE_INVALID)
     {
@@ -552,7 +553,7 @@ CCurrencyDefinition::CCurrencyDefinition(const UniValue &obj) :
                     nVersion = PBAAS_VERSION_INVALID;
                 }
 
-                int32_t preLaunchCarveOutTotal = AmountFromValue(find_value(obj, "prelaunchcarveout"));
+                preLaunchCarveOut = AmountFromValueNoErr(find_value(obj, "prelaunchcarveout"));
 
                 // if weights are defined, use them as relative ratios of each member currency
                 if (weightArr.isArray() && weightArr.size())
This page took 0.024471 seconds and 4 git commands to generate.