OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
697e2b8
)
fix (#449)
author
wz
<mars@bytom.io>
Mon, 25 Nov 2019 03:12:08 +0000
(11:12 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Mon, 25 Nov 2019 03:12:08 +0000
(11:12 +0800)
blockchain/txbuilder/actions.go
patch
|
blob
|
history
diff --git
a/blockchain/txbuilder/actions.go
b/blockchain/txbuilder/actions.go
index
ae9fcb0
..
994e03c
100644
(file)
--- 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")