mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
fix syntax errors in trustedcoin plugin
This commit is contained in:
parent
6210c61eb6
commit
32483e64c6
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ class Plugin(TrustedCoinPlugin):
|
||||||
def sign_tx(self, window, tx):
|
def sign_tx(self, window, tx):
|
||||||
self.print_error("twofactor:sign_tx")
|
self.print_error("twofactor:sign_tx")
|
||||||
wallet = window.wallet
|
wallet = window.wallet
|
||||||
assert isinstace(wallet, self.wallet_class)
|
assert isinstance(wallet, self.wallet_class)
|
||||||
if not wallet.can_sign_without_server():
|
if not wallet.can_sign_without_server():
|
||||||
auth_code = None
|
auth_code = None
|
||||||
if need_server(wallet, tx):
|
if need_server(wallet, tx):
|
||||||
|
@ -101,7 +101,7 @@ class Plugin(TrustedCoinPlugin):
|
||||||
@hook
|
@hook
|
||||||
def abort_send(self, window):
|
def abort_send(self, window):
|
||||||
wallet = window.wallet
|
wallet = window.wallet
|
||||||
assert isinstace(wallet, self.wallet_class)
|
assert isinstance(wallet, self.wallet_class)
|
||||||
if not wallet.can_sign_without_server():
|
if not wallet.can_sign_without_server():
|
||||||
if wallet.billing_info is None:
|
if wallet.billing_info is None:
|
||||||
# request billing info before forming the transaction
|
# request billing info before forming the transaction
|
||||||
|
|
Loading…
Add table
Reference in a new issue