forked from TrueCloudLab/neoneo-go
f000b76879
* [FIX] Formatting and code-style - gofmt - import resort - prealloc slices - simplify code * fix vet
25 lines
480 B
Go
25 lines
480 B
Go
package transaction
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// ContractTX represents a contract transaction.
|
|
// This TX has not special attributes.
|
|
type ContractTX struct{}
|
|
|
|
func NewContractTX() *Transaction {
|
|
return &Transaction{
|
|
Type: ContractType,
|
|
}
|
|
}
|
|
|
|
// DecodeBinary implements the Payload interface.
|
|
func (tx *ContractTX) DecodeBinary(r io.Reader) error {
|
|
return nil
|
|
}
|
|
|
|
// EncodeBinary implements the Payload interface.
|
|
func (tx *ContractTX) EncodeBinary(w io.Writer) error {
|
|
return nil
|
|
}
|