package txbuilder
import (
- "github.com/bytom/protocol/bc"
- "github.com/bytom/protocol/vm"
- "github.com/bytom/protocol/vm/vmutil"
+ "github.com/bytom/bytom/protocol/bc"
+ "github.com/bytom/bytom/protocol/vm"
+ "github.com/bytom/bytom/protocol/vm/vmutil"
)
// Constraint types express a constraint on an input of a proposed
return prog
}
-
// PayConstraint requires the transaction to include a given output
// at the given index, optionally with the given refdatahash.
type payConstraint struct {
Index int
bc.AssetAmount
- Program []byte
+ Program []byte
}
func (p payConstraint) code() []byte {