Skip to content

Commit

Permalink
support OP_RETURN
Browse files Browse the repository at this point in the history
  • Loading branch information
h0ngcha0 committed Jun 1, 2020
1 parent 8c6cfe1 commit c9ba042
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 194 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class TransactionDetailsComponent extends React.Component {
<TableCell style={ { whiteSpace: "normal", wordWrap: "break-word", maxWidth: "120px"}}>
<div className='btc-address'>
<HomeIcon style={{verticalAlign: "middle", fontSize: "18px"}}/>
<span style={{verticalAlign: "middle"}}>{_.head(output.addresses)}</span>
<span style={{verticalAlign: "middle"}}>{_.head(output.addresses) || 'No address'}</span>
</div>
<div className='btc-amount'>
<BitcoinIcon style={{verticalAlign: "middle", fontSize: "18px"}}/>
Expand Down Expand Up @@ -131,6 +131,10 @@ const ScriptType = ({scriptTypeRaw}) => {
return (
<a href="https://en.bitcoinwiki.org/wiki/Pay-to-Script_Hash"> P2SH </a>
);
} if(scriptTypeRaw === 'null-data') {
return (
<a href="https://btcinformation.org/en/glossary/null-data-transaction"> NULL DATA </a>
);
} else if (scriptTypeRaw){
return (<span> {scriptTypeRaw} </span>);
} else {
Expand Down
Loading

0 comments on commit c9ba042

Please sign in to comment.