OSDN Git Service

fix: fix typo (#1674)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Mon, 8 Apr 2019 01:37:57 +0000 (09:37 +0800)
committerPaladz <yzhu101@uottawa.ca>
Mon, 8 Apr 2019 01:37:57 +0000 (09:37 +0800)
protocol/validation/tx.go

index afe546b..f7e860e 100644 (file)
@@ -388,7 +388,7 @@ func checkValidDest(vs *validationState, vd *bc.ValueDestination) error {
                return errors.Wrap(ErrMissingField, "missing ref on value destination")
        }
        if vd.Value == nil || vd.Value.AssetId == nil {
-               return errors.Wrap(ErrMissingField, "missing value on value source")
+               return errors.Wrap(ErrMissingField, "missing value on value destination")
        }
 
        e, ok := vs.tx.Entries[*vd.Ref]