From b37a5b3e99a42a9c7437d6ff867b86fb54959c4f Mon Sep 17 00:00:00 2001 From: "entero.vipun" Date: Thu, 29 Jul 2021 12:11:08 -0500 Subject: [PATCH] revert an PR. merged a PR --- dogechia/daemon/client.py | 2 +- dogechia/wallet/cc_wallet/cc_wallet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dogechia/daemon/client.py b/dogechia/daemon/client.py index fec7ad62f..33dbcd6f7 100644 --- a/dogechia/daemon/client.py +++ b/dogechia/daemon/client.py @@ -37,7 +37,7 @@ async def listener(): id = decoded["request_id"] if id in self._request_dict: - if id in self.response_dict: + if id in self._request_dict: self.response_dict[id] = decoded self._request_dict[id].set() diff --git a/dogechia/wallet/cc_wallet/cc_wallet.py b/dogechia/wallet/cc_wallet/cc_wallet.py index 78d201710..96f27d1fb 100644 --- a/dogechia/wallet/cc_wallet/cc_wallet.py +++ b/dogechia/wallet/cc_wallet/cc_wallet.py @@ -221,7 +221,7 @@ async def get_unconfirmed_balance(self, unspent_records=None) -> uint128: removal_amount = 0 for record in unconfirmed_tx: - if record.type is TransactionType.INCOMING_TX: + if TransactionType(record.type) is TransactionType.INCOMING_TX: addition_amount += record.amount else: removal_amount += record.amount