mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-24 09:30:36 +00:00
d1a4e43c48
Further simplifies error handling.
24 lines
546 B
Go
24 lines
546 B
Go
package transaction
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/io"
|
|
)
|
|
|
|
// ContractTX represents a contract transaction.
|
|
// This TX has not special attributes.
|
|
type ContractTX struct{}
|
|
|
|
// NewContractTX creates Transaction of ContractType type.
|
|
func NewContractTX() *Transaction {
|
|
return &Transaction{
|
|
Type: ContractType,
|
|
}
|
|
}
|
|
|
|
// DecodeBinary implements Serializable interface.
|
|
func (tx *ContractTX) DecodeBinary(r *io.BinReader) {
|
|
}
|
|
|
|
// EncodeBinary implements Serializable interface.
|
|
func (tx *ContractTX) EncodeBinary(w *io.BinWriter) {
|
|
}
|