diff --git a/src/app/chat/views/stickers.nim b/src/app/chat/views/stickers.nim index fe21d3102d..cd09aebcad 100644 --- a/src/app/chat/views/stickers.nim +++ b/src/app/chat/views/stickers.nim @@ -147,7 +147,7 @@ QtObject: let pendingTransactions = status_wallet.getPendingTransactions() var pendingStickerPacks = initHashSet[int]() if (pendingTransactions != ""): - for trx in pendingTransactions.parseJson["result"].getElems(): + for trx in pendingTransactions.parseJson{"result"}.getElems(): if trx["type"].getStr == $PendingTransactionType.BuyStickerPack: pendingStickerPacks.incl(trx["additionalData"].getStr.parseInt) diff --git a/src/app/profile/views/ens_manager.nim b/src/app/profile/views/ens_manager.nim index aebff52531..8a21507855 100644 --- a/src/app/profile/views/ens_manager.nim +++ b/src/app/profile/views/ens_manager.nim @@ -111,7 +111,7 @@ QtObject: let pendingTransactions = status_wallet.getPendingTransactions() if (pendingTransactions == ""): return - for trx in pendingTransactions.parseJson["result"].getElems(): + for trx in pendingTransactions.parseJson{"result"}.getElems(): if trx["type"].getStr == $PendingTransactionType.RegisterENS: self.usernames.add trx["additionalData"].getStr self.pendingUsernames.incl trx["additionalData"].getStr diff --git a/src/status/libstatus/core.nim b/src/status/libstatus/core.nim index f773d67d20..6000d9494f 100644 --- a/src/status/libstatus/core.nim +++ b/src/status/libstatus/core.nim @@ -21,7 +21,7 @@ proc callPrivateRPC*(methodName: string, payload = %* []): string = let response = status_go.callPrivateRPC($inputJSON) result = $response if parseJSON(result).hasKey("error"): - error "rpc response error", result = result + error "rpc response error", result, payload, methodName except Exception as e: error "error doing rpc request", methodName = methodName, exception=e.msg diff --git a/src/status/wallet.nim b/src/status/wallet.nim index eeda1ea4de..373231f516 100644 --- a/src/status/wallet.nim +++ b/src/status/wallet.nim @@ -104,7 +104,7 @@ proc checkPendingTransactions*(self: WalletModel) = let latestBlock = parseInt($fromHex(Stuint[256], response["result"]["number"].getStr)) let pendingTransactions = status_wallet.getPendingTransactions() if (pendingTransactions != ""): - self.confirmTransactionStatus(pendingTransactions.parseJson["result"], latestBlock) + self.confirmTransactionStatus(pendingTransactions.parseJson{"result"}, latestBlock) proc checkPendingTransactions*(self: WalletModel, address: string, blockNumber: int) =