hardware wallets: fix sign_transaction in resstored wallets
This commit is contained in:
@@ -302,6 +302,8 @@ class BTChipWallet(BIP32_HD_Wallet):
|
||||
self.give_error("Not supported")
|
||||
|
||||
def sign_message(self, address, message, password):
|
||||
if self.has_seed():
|
||||
return BIP32_HD_Wallet.sign_message(self, address, message, password)
|
||||
use2FA = False
|
||||
self.signing = True
|
||||
self.get_client() # prompt for the PIN before displaying the dialog if necessary
|
||||
@@ -352,6 +354,8 @@ class BTChipWallet(BIP32_HD_Wallet):
|
||||
return chr(27 + 4 + (signature[0] & 0x01)) + r + s
|
||||
|
||||
def sign_transaction(self, tx, password):
|
||||
if self.has_seed():
|
||||
return BIP32_HD_Wallet.sign_transaction(self, tx, password)
|
||||
if tx.is_complete():
|
||||
return
|
||||
#if tx.error:
|
||||
|
||||
Reference in New Issue
Block a user