Skip to content

Commit 9d4a7b8

Browse files
author
Soumya Mohapatra
committed
fix: propagate action-level issuer to burn outputs for RedeemedBalance tracking
Signed-off-by: Soumya Mohapatra <mohapatras@microsoft.com>
1 parent 0dbe2a5 commit 9d4a7b8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

token/request.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,11 @@ func (r *Request) extractTransferOutputs(ctx context.Context, i int, counter uin
738738
if err != nil {
739739
return nil, 0, errors.Wrapf(err, "failed getting quantity [%d,%d]", i, j)
740740
}
741+
// For redeem outputs, the per-output metadata does not carry the issuer identity.
742+
// Fall back to the action-level issuer (set only for redeem transfers).
743+
if issuer.IsNone() && !transferAction.GetIssuer().IsNone() {
744+
issuer = transferAction.GetIssuer()
745+
}
741746
if noOutputForRecipient {
742747
outputs = append(outputs, &Output{
743748
Token: *tok,

0 commit comments

Comments
 (0)