Skip to content

Commit 5a73e51

Browse files
committed
fix: don't consider inputs with assets
Fixes #198 Signed-off-by: Aurora Gaffney <aurora@blinklabs.io>
1 parent 13830c3 commit 5a73e51

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/txbuilder/txbuilder.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ func chooseInputUtxos(
128128
return nil, errors.New("not enough funds")
129129
}
130130
utxo := availableUtxos[0]
131+
// Discard inputs with assets for simplicity
132+
if utxo.Output.GetValue().HasAssets {
133+
availableUtxos = availableUtxos[1:]
134+
continue
135+
}
131136
ret = append(ret, utxo)
132137
selectedAmount = selectedAmount.Add(utxo.Output.GetValue())
133138
availableUtxos = availableUtxos[1:]

0 commit comments

Comments
 (0)