Skip to content

Commit

Permalink
Namecoin: Make _mktx use new TxOutput API for names
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 6, 2020
1 parent d4bf684 commit 1e21e62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion electrum_nmc/electrum/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ def _mktx(self, wallet: Abstract_Wallet, outputs, *, fee=None, feerate=None, cha
for address, amount, name_op, memo in name_outputs:
address = self._resolver(address, wallet)
amount = satoshis(amount)
final_outputs.append(TxOutput(TYPE_ADDRESS, address, amount, name_op))
output = PartialTxOutput.from_address_and_value(address, amount)
output.add_name_op(name_op)
final_outputs.append(output)
for address, amount in outputs:
address = self._resolver(address, wallet)
amount = satoshis(amount)
Expand Down

0 comments on commit 1e21e62

Please sign in to comment.