mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 09:33:36 +00:00
74f0019df2
* func to get private key from raw bytes * added function to create raw transfer tx * fixes * more fixes * prettify code and comments; neoscan interaction put in dedicated files
25 lines
483 B
Go
25 lines
483 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
|
|
}
|