transaction: introduce TxOutput namedtuple
This commit is contained in:
@@ -6,6 +6,7 @@ import getpass
|
||||
import electrum
|
||||
from electrum.util import format_satoshis, set_verbosity
|
||||
from electrum.bitcoin import is_address, COIN, TYPE_ADDRESS
|
||||
from electrum.transaction import TxOutput
|
||||
from .. import Wallet, WalletStorage
|
||||
|
||||
_ = lambda x:x
|
||||
@@ -340,7 +341,8 @@ class ElectrumGui:
|
||||
else:
|
||||
password = None
|
||||
try:
|
||||
tx = self.wallet.mktx([(TYPE_ADDRESS, self.str_recipient, amount)], password, self.config, fee)
|
||||
tx = self.wallet.mktx([TxOutput(TYPE_ADDRESS, self.str_recipient, amount)],
|
||||
password, self.config, fee)
|
||||
except Exception as e:
|
||||
self.show_message(str(e))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user