@@ -482,7 +482,7 @@ func (r *Request) extractIssueOutputs(i int, counter uint64, issueAction driver.
482482 if len (issueAction .GetOutputs ()) != len (issueMeta .OutputsMetadata ) || len (issueMeta .ReceiversAuditInfos ) != len (issueAction .GetOutputs ()) {
483483 return nil , 0 , errors .Wrapf (err , "failed matching issue action with its metadata [%d]: invalid metadata" , i )
484484 }
485- tok , _ , tokType , err := tms .TokensService ().Deobfuscate (raw , issueMeta .OutputsMetadata [j ])
485+ tok , _ , format , err := tms .TokensService ().Deobfuscate (raw , issueMeta .OutputsMetadata [j ])
486486 if err != nil {
487487 return nil , 0 , errors .Wrapf (err , "failed getting issue action output in the clear [%d,%d]" , i , j )
488488 }
@@ -496,16 +496,16 @@ func (r *Request) extractIssueOutputs(i int, counter uint64, issueAction driver.
496496 }
497497
498498 outputs = append (outputs , & Output {
499- ActionIndex : i ,
500- Index : counter ,
501- Owner : tok .Owner ,
502- OwnerAuditInfo : issueMeta .ReceiversAuditInfos [j ],
503- EnrollmentID : eID ,
504- RevocationHandler : rID ,
505- Type : tok .Type ,
506- Quantity : q ,
507- LedgerOutput : raw ,
508- LedgerOutputType : tokType ,
499+ ActionIndex : i ,
500+ Index : counter ,
501+ Owner : tok .Owner ,
502+ OwnerAuditInfo : issueMeta .ReceiversAuditInfos [j ],
503+ EnrollmentID : eID ,
504+ RevocationHandler : rID ,
505+ Type : tok .Type ,
506+ Quantity : q ,
507+ LedgerOutput : raw ,
508+ LedgerOutputFormat : format ,
509509 })
510510 counter ++
511511
@@ -564,16 +564,16 @@ func (r *Request) extractTransferOutputs(i int, counter uint64, transferAction d
564564 }
565565 r .TokenService .logger .Debugf ("Transfer Action Output [%d,%d][%s:%d] is present, extract [%s]" , i , j , r .Anchor , counter , Hashable (ledgerOutput ))
566566 outputs = append (outputs , & Output {
567- ActionIndex : i ,
568- Index : counter ,
569- Owner : tok .Owner ,
570- OwnerAuditInfo : receiverAuditInfo ,
571- EnrollmentID : eID ,
572- RevocationHandler : rID ,
573- Type : tok .Type ,
574- Quantity : q ,
575- LedgerOutput : ledgerOutput ,
576- LedgerOutputType : tokType ,
567+ ActionIndex : i ,
568+ Index : counter ,
569+ Owner : tok .Owner ,
570+ OwnerAuditInfo : receiverAuditInfo ,
571+ EnrollmentID : eID ,
572+ RevocationHandler : rID ,
573+ Type : tok .Type ,
574+ Quantity : q ,
575+ LedgerOutput : ledgerOutput ,
576+ LedgerOutputFormat : tokType ,
577577 })
578578 counter ++
579579 }
0 commit comments