• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版1948ee5ff3ee681f45b632c15e0975ef8c78de87 (tree)
时间2019-11-25 11:47:00
作者wz <mars@byto...>
Commiterwz

Log Message

fix

更改概述

差异

--- a/blockchain/txbuilder/actions.go
+++ b/blockchain/txbuilder/actions.go
@@ -156,8 +156,8 @@ type crossOutAction struct {
156156
157157 func (a *crossOutAction) Build(ctx context.Context, b *TemplateBuilder) error {
158158 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")
161161 }
162162 if a.AssetId.IsZero() {
163163 missing = append(missing, "asset_id")
Show on old repository browser