Commit 61b35348 authored by Paladz's avatar Paladz Committed by GitHub

Merge pull request #1737 from Bytom/fix_amount_zero

fix bug
parents 3bfff50d 792bf85b
......@@ -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