diff --git a/beembase/ledgertransactions.py b/beembase/ledgertransactions.py index fe30ffbc..e6e2a82e 100644 --- a/beembase/ledgertransactions.py +++ b/beembase/ledgertransactions.py @@ -53,6 +53,7 @@ def sign(self, path="48'/13'/0'/0'/0'", chain=u"STEEM"): apdu_list = self.build_apdu(path, chain) for apdu in apdu_list: result = dongle.exchange(py23_bytes(apdu)) + dongle.close() sigs = [] signature = result sigs.append(Signature(signature)) @@ -64,6 +65,7 @@ def get_pubkey(self, path="48'/13'/0'/0'/0'", request_screen_approval=False, pre dongle = getDongle(True) apdu = self.build_apdu_pubkey(path, request_screen_approval) result = dongle.exchange(py23_bytes(apdu)) + dongle.close() offset = 1 + result[0] address = result[offset + 1: offset + 1 + result[offset]] # public_key = result[1: 1 + result[0]]