From e7beb6b1a7533d77da6534f60d32a4459d6198d9 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 29 Apr 2019 14:14:31 -0400 Subject: [PATCH] fix for adding new account from private_key_string --- torba/client/baseaccount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torba/client/baseaccount.py b/torba/client/baseaccount.py index 5864655c2..6b0c60cf6 100644 --- a/torba/client/baseaccount.py +++ b/torba/client/baseaccount.py @@ -256,7 +256,7 @@ class BaseAccount: if seed: private_key = cls.get_private_key_from_seed(ledger, seed, '') public_key = private_key.public_key - elif private_key: + elif private_key_string: private_key = from_extended_key_string(ledger, private_key_string) public_key = private_key.public_key if public_key is None: