Skip to content

Commit

Permalink
Namecoin: Add name_op to transaction to_json
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 17, 2020
1 parent f793d10 commit 8dfeb7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions electrum_nmc/electrum/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def to_json(self):
d = {
'scriptpubkey': self.scriptpubkey.hex(),
'address': self.address,
'name_op': self.name_op,
'value_sats': self.value,
}
return d
Expand Down Expand Up @@ -1134,6 +1135,7 @@ def to_json(self):
'height': self.block_height,
'value_sats': self.value_sats(),
'address': self.address,
'name_op': self.name_op,
'utxo': str(self.utxo) if self.utxo else None,
'witness_utxo': self.witness_utxo.serialize_to_network().hex() if self.witness_utxo else None,
'sighash': self.sighash,
Expand Down

0 comments on commit 8dfeb7d

Please sign in to comment.