Skip to content

Commit

Permalink
fix transfer out memo
Browse files Browse the repository at this point in the history
  • Loading branch information
cw35 committed Jan 4, 2024
1 parent 3b218ad commit 6914d6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package wallet

import (
"context"
"fmt"
"time"

"github.com/fox-one/ftoken/core"
Expand Down Expand Up @@ -84,6 +85,8 @@ func (m *mixinBot) Transfer(ctx context.Context, req *core.Transfer) error {
}

builder := mixin.NewSafeTransactionBuilder(utxos)
builder.Hint = fmt.Sprintf(req.TraceID, "ftoken:transfer:hint")
builder.Memo = req.Memo
tx, err := m.client.MakeTransaction(ctx, builder, []*mixin.TransactionOutput{
{
Amount: req.Amount,
Expand Down

0 comments on commit 6914d6c

Please sign in to comment.