fix trustedcoin hook
This commit is contained in:
@@ -314,6 +314,8 @@ class TrustedCoinPlugin(BasePlugin):
|
|||||||
|
|
||||||
@hook
|
@hook
|
||||||
def get_additional_fee(self, wallet, tx):
|
def get_additional_fee(self, wallet, tx):
|
||||||
|
if type(wallet) != Wallet_2fa:
|
||||||
|
return
|
||||||
address = wallet.billing_info['billing_address']
|
address = wallet.billing_info['billing_address']
|
||||||
for _type, addr, amount in tx.outputs():
|
for _type, addr, amount in tx.outputs():
|
||||||
if _type == TYPE_ADDRESS and addr == address:
|
if _type == TYPE_ADDRESS and addr == address:
|
||||||
|
|||||||
Reference in New Issue
Block a user