This commit is contained in:
blackjok3r
2018-09-26 16:02:36 +08:00
parent 7d7b68dc6f
commit 66874998de

View File

@@ -169,7 +169,7 @@ UniValue migrate_converttoexport(const UniValue& params, bool fHelp)
if (targetSymbol.size() == 0 || targetSymbol.size() > 32)
throw runtime_error("targetSymbol length must be >0 and <=32");
if (ASSETCHAINS_SYMBOL == targetSymbol)
if (strcmp(ASSETCHAINS_SYMBOL,targetSymbol.c_str()) == 0)
throw runtime_error("cant send a coin to the same chain");
CAmount burnAmount = AmountFromValue(params[2]);