Commit 792bf85b authored by paladz's avatar paladz

fix bug

parent 3bfff50d
......@@ -209,6 +209,9 @@ func (a *spendAction) Build(ctx context.Context, b *txbuilder.TemplateBuilder) e
if a.AssetId.IsZero() {
missing = append(missing, "asset_id")
}
if a.AssetAmount.Amount == 0 {
missing = append(missing, "amount")
}
if len(missing) > 0 {
return txbuilder.MissingFieldsError(missing...)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment