Skip to content

Commit cc98fce

Browse files
committed
fix typo
1 parent d86415d commit cc98fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

withdrawal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func withdrawalTransaction(ctx context.Context, traceId, feeReceiverId string, f
7777
totalOutput := common.NewIntegerFromString(amount)
7878
var err error
7979
if len(utxos) < 1 {
80-
utxos, err = ListOutputs(ctx, membersHash, 1, assetId, "unspent", 0, 250, u)
80+
utxos, err = ListOutputs(ctx, membersHash, 1, assetId, OutputStateUnspent, 0, 250, u)
8181
if err != nil {
8282
return nil, err
8383
}
@@ -118,7 +118,7 @@ func withdrawalTransaction(ctx context.Context, traceId, feeReceiverId string, f
118118

119119
var feeChange common.Integer
120120
if len(feeUtxos) < 1 {
121-
feeUtxos, err = ListOutputs(ctx, membersHash, 1, feeAssetId, "unspent", 0, 250, u)
121+
feeUtxos, err = ListOutputs(ctx, membersHash, 1, feeAssetId, OutputStateUnspent, 0, 250, u)
122122
if err != nil {
123123
return nil, err
124124
}

0 commit comments

Comments
 (0)