X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=blockchain%2Ftxbuilder%2Factions.go;h=994e03caf3765fcfc7aa3c39eacc62618287f362;hb=f2b8af76859cf519dd97af8ef123fdae1bae44be;hp=ae9fcb047788a20149a0657f96c7797cd0b94e96;hpb=697e2b802689c40bb9b9bfdf941d69d5cb723286;p=bytom%2Fvapor.git 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")