transaction: introduce TxOutput namedtuple
This commit is contained in:
@@ -4,6 +4,7 @@ _ = lambda x:x
|
||||
from electrum import WalletStorage, Wallet
|
||||
from electrum.util import format_satoshis, set_verbosity
|
||||
from electrum.bitcoin import is_address, COIN, TYPE_ADDRESS
|
||||
from electrum.transaction import TxOutput
|
||||
import getpass, datetime
|
||||
|
||||
# minimal fdisk like gui for console usage
|
||||
@@ -189,7 +190,8 @@ class ElectrumGui:
|
||||
if c == "n": return
|
||||
|
||||
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:
|
||||
print(str(e))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user