From f2b8af76859cf519dd97af8ef123fdae1bae44be Mon Sep 17 00:00:00 2001 From: wz Date: Mon, 25 Nov 2019 11:12:08 +0800 Subject: [PATCH] fix (#449) --- blockchain/txbuilder/actions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") -- 2.11.0