Golang implemented sidechain for Bytom
修订版 | 1948ee5ff3ee681f45b632c15e0975ef8c78de87 (tree) |
---|---|
时间 | 2019-11-25 11:47:00 |
作者 | wz <mars@byto...> |
Commiter | wz |
fix
@@ -156,8 +156,8 @@ type crossOutAction struct { | ||
156 | 156 | |
157 | 157 | func (a *crossOutAction) Build(ctx context.Context, b *TemplateBuilder) error { |
158 | 158 | var missing []string |
159 | - if a.Address == "" { | |
160 | - missing = append(missing, "address") | |
159 | + if a.Address == "" && len(a.Program) == 0 { | |
160 | + missing = append(missing, "address or program") | |
161 | 161 | } |
162 | 162 | if a.AssetId.IsZero() { |
163 | 163 | missing = append(missing, "asset_id") |