Skip to content

Commit

Permalink
Namecoin: Add TODO for name_op JSON serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 17, 2020
1 parent 55f3339 commit 08df0a6
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 @@ -172,6 +172,7 @@ def __ne__(self, other):

def to_json(self):
d = {
# TODO: Namecoin: Convert all name_op fields to JSON
'scriptpubkey': self.scriptpubkey.hex(),
'address': self.address,
'name_op': self.name_op,
Expand Down Expand Up @@ -1132,6 +1133,7 @@ def __init__(self, *args, **kwargs):
def to_json(self):
d = super().to_json()
d.update({
# TODO: Namecoin: Convert all name_op fields to JSON
'height': self.block_height,
'value_sats': self.value_sats(),
'address': self.address,
Expand Down

0 comments on commit 08df0a6

Please sign in to comment.