Skip to content

Commit

Permalink
Namecoin: Add name_op to PartialTxInput
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 6, 2020
1 parent 3447ff2 commit 4f1424e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions electrum_nmc/electrum/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,13 @@ def address(self) -> Optional[str]:
return get_address_from_output_script(scriptpubkey)
return None

@property
def name_op(self) -> Optional[dict]:
scriptpubkey = self.scriptpubkey
if scriptpubkey:
return get_name_op_from_output_script(self.scriptpubkey)
return None

@property
def scriptpubkey(self) -> Optional[bytes]:
if self._trusted_address is not None:
Expand Down

0 comments on commit 4f1424e

Please sign in to comment.