@@ -25,7 +25,8 @@ class Output extends Component<OutputProps, OutputState> {
2525
2626 this . state = {
2727 formatFull : false ,
28- isGenesis : ( this . isOutputResponse ( props . output ) ) ? props . output . messageId === "0" . repeat ( 64 ) : false ,
28+ isGenesis : ( this . isOutputResponse ( props . output ) )
29+ ? props . output . metadata . messageId === "0" . repeat ( 64 ) : false ,
2930 output : ( this . isOutputResponse ( props . output ) ) ? props . output . output : props . output ,
3031 showDetails : false
3132 } ;
@@ -90,16 +91,16 @@ class Output extends Component<OutputProps, OutputState> {
9091 < React . Fragment >
9192 < Link
9293 to = {
93- `/explorer/message/${ this . props . output . messageId } `
94+ `/explorer/message/${ this . props . output . metadata . messageId } `
9495 }
9596 className = "margin-r-t"
9697 >
97- { this . props . output . messageId }
98+ { this . props . output . metadata . messageId }
9899 </ Link >
99100 < MessageButton
100101 onClick = { ( ) => {
101102 if ( this . isOutputResponse ( this . props . output ) ) {
102- ClipboardHelper . copy ( this . props . output . messageId ) ;
103+ ClipboardHelper . copy ( this . props . output . metadata . messageId ) ;
103104 }
104105 } }
105106 buttonType = "copy"
@@ -118,12 +119,14 @@ class Output extends Component<OutputProps, OutputState> {
118119 { ! this . state . isGenesis && (
119120 < React . Fragment >
120121 < span className = "margin-r-t" >
121- { this . props . output . transactionId }
122+ { this . props . output . metadata . transactionId }
122123 </ span >
123124 < MessageButton
124125 onClick = { ( ) => {
125126 if ( this . isOutputResponse ( this . props . output ) ) {
126- ClipboardHelper . copy ( this . props . output . transactionId ) ;
127+ ClipboardHelper . copy (
128+ this . props . output . metadata . transactionId
129+ ) ;
127130 }
128131 } }
129132 buttonType = "copy"
@@ -136,13 +139,13 @@ class Output extends Component<OutputProps, OutputState> {
136139 Index
137140 </ div >
138141 < div className = "card--value" >
139- { this . props . output . outputIndex }
142+ { this . props . output . metadata . outputIndex }
140143 </ div >
141144 < div className = "card--label" >
142145 Is Spent
143146 </ div >
144147 < div className = "card--value" >
145- { this . props . output . isSpent ? "Yes" : "No" }
148+ { this . props . output . metadata . isSpent ? "Yes" : "No" }
146149 </ div >
147150 </ React . Fragment >
148151 ) }
@@ -195,12 +198,6 @@ class Output extends Component<OutputProps, OutputState> {
195198 < div className = "card--value row" >
196199 { this . state . output . serialNumber }
197200 </ div >
198- { /* <div className="card--label">
199- Token tag:
200- </div>
201- <div className="card--value row">
202- {this.state.output.tokenTag}
203- </div> */ }
204201 < div className = "card--label" >
205202 Token scheme type:
206203 </ div >
0 commit comments