Skip to content
Snippets Groups Projects
Commit 8a261d4d authored by Erdem Erdyniev's avatar Erdem Erdyniev
Browse files

[*]web3:GetMempoolTxHash: fixed error handling

parent 10247aaa
No related branches found
No related tags found
2 merge requests!293[+] add new web 3 commands - GetDexOrderList, GetDexPairs, GetDexPairRate,!290bugfix-15118
......@@ -33,6 +33,15 @@ QVariant MempoolCheckCommand::respondToClient(const QVariant &args)
{
auto resultValue = cmdList->getJsonResult(requestDoc, "mempool check").result.toArray();
mempoolAnswer = resultValue[0].toObject();
if(!mempoolAnswer["errors"].isNull())
{
QJsonArray errArr = mempoolAnswer["errors"].toArray();
if (!errArr.isEmpty())
{
errorMsg = errArr[0].toObject()["message"].toString();
}
}
}
if(args.toStringList().contains(WEB3_KEY))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment