2018-03-14 09:36:59 +00:00
|
|
|
package transaction
|
|
|
|
|
|
|
|
import (
|
2019-09-16 09:18:13 +00:00
|
|
|
"github.com/CityOfZion/neo-go/pkg/io"
|
2018-03-14 09:36:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// ContractTX represents a contract transaction.
|
|
|
|
// This TX has not special attributes.
|
|
|
|
type ContractTX struct{}
|
|
|
|
|
2019-09-03 14:51:37 +00:00
|
|
|
// NewContractTX creates Transaction of ContractType type.
|
2018-12-21 09:32:18 +00:00
|
|
|
func NewContractTX() *Transaction {
|
|
|
|
return &Transaction{
|
2019-01-25 11:20:35 +00:00
|
|
|
Type: ContractType,
|
2018-12-21 09:32:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-14 09:36:59 +00:00
|
|
|
// DecodeBinary implements the Payload interface.
|
2019-09-16 09:18:13 +00:00
|
|
|
func (tx *ContractTX) DecodeBinary(r *io.BinReader) error {
|
2018-03-14 09:36:59 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeBinary implements the Payload interface.
|
2019-09-16 09:18:13 +00:00
|
|
|
func (tx *ContractTX) EncodeBinary(w *io.BinWriter) error {
|
2018-03-14 09:36:59 +00:00
|
|
|
return nil
|
|
|
|
}
|