mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 23:30:36 +00:00
b16e56a47b
Make it accept arbitrary slice pointer.
20 lines
441 B
Go
20 lines
441 B
Go
package transaction
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/io"
|
|
)
|
|
|
|
// StateTX represents a state transaction.
|
|
type StateTX struct {
|
|
Descriptors []*StateDescriptor
|
|
}
|
|
|
|
// DecodeBinary implements Serializable interface.
|
|
func (tx *StateTX) DecodeBinary(r *io.BinReader) {
|
|
r.ReadArray(&tx.Descriptors)
|
|
}
|
|
|
|
// EncodeBinary implements Serializable interface.
|
|
func (tx *StateTX) EncodeBinary(w *io.BinWriter) {
|
|
w.WriteArray(tx.Descriptors)
|
|
}
|