From: wz Date: Mon, 25 Nov 2019 03:12:08 +0000 (+0800) Subject: fix (#449) X-Git-Tag: v1.0.5~10 X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=commitdiff_plain;h=f2b8af76859cf519dd97af8ef123fdae1bae44be fix (#449) --- diff --git a/blockchain/txbuilder/actions.go b/blockchain/txbuilder/actions.go index ae9fcb04..994e03ca 100644 --- a/blockchain/txbuilder/actions.go +++ b/blockchain/txbuilder/actions.go @@ -156,8 +156,8 @@ type crossOutAction struct { func (a *crossOutAction) Build(ctx context.Context, b *TemplateBuilder) error { var missing []string - if a.Address == "" { - missing = append(missing, "address") + if a.Address == "" && len(a.Program) == 0 { + missing = append(missing, "address or program") } if a.AssetId.IsZero() { missing = append(missing, "asset_id")