trustedcoin: Wallet_2fa.make_unsigned_transaction to use **kwargs
We often forget updating the method signature of Wallet_2fa.make_unsigned_transaction when changing Abstract_Wallet.make_unsigned_transaction.
This commit is contained in:
@@ -326,15 +326,13 @@ class Wallet_2fa(Multisig_Wallet):
|
|||||||
|
|
||||||
def make_unsigned_transaction(
|
def make_unsigned_transaction(
|
||||||
self, *,
|
self, *,
|
||||||
coins: Sequence[PartialTxInput],
|
|
||||||
outputs: List[PartialTxOutput],
|
outputs: List[PartialTxOutput],
|
||||||
fee=None,
|
|
||||||
change_addr: str = None,
|
|
||||||
is_sweep=False,
|
is_sweep=False,
|
||||||
rbf=False) -> PartialTransaction: # FIXME method signature
|
**kwargs,
|
||||||
|
) -> PartialTransaction:
|
||||||
|
|
||||||
mk_tx = lambda o: Multisig_Wallet.make_unsigned_transaction(
|
mk_tx = lambda o: Multisig_Wallet.make_unsigned_transaction(
|
||||||
self, coins=coins, outputs=o, fee=fee, change_addr=change_addr, rbf=rbf)
|
self, outputs=o, **kwargs)
|
||||||
extra_fee = self.extra_fee() if not is_sweep else 0
|
extra_fee = self.extra_fee() if not is_sweep else 0
|
||||||
if extra_fee:
|
if extra_fee:
|
||||||
address = self.billing_info['billing_address_segwit']
|
address = self.billing_info['billing_address_segwit']
|
||||||
|
|||||||
@@ -1809,8 +1809,8 @@ class Abstract_Wallet(ABC, Logger, EventListener):
|
|||||||
outputs: List[PartialTxOutput],
|
outputs: List[PartialTxOutput],
|
||||||
fee=None,
|
fee=None,
|
||||||
change_addr: str = None,
|
change_addr: str = None,
|
||||||
is_sweep=False,
|
is_sweep: bool = False, # used by Wallet_2fa subclass
|
||||||
rbf=True,
|
rbf: bool = True,
|
||||||
batch_rbf: Optional[bool] = None,
|
batch_rbf: Optional[bool] = None,
|
||||||
send_change_to_lightning: Optional[bool] = None,
|
send_change_to_lightning: Optional[bool] = None,
|
||||||
) -> PartialTransaction:
|
) -> PartialTransaction:
|
||||||
|
|||||||
Reference in New Issue
Block a user