mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 23:30:36 +00:00
5bf00db2c9
The logic here is that we'll have all binary encoding/decoding done via our io package, which simplifies error handling. This functionality doesn't belong to util, so it's moved. This also expands BufBinWriter with Reset() method to fit the needs of core package.
24 lines
526 B
Go
24 lines
526 B
Go
package transaction
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/io"
|
|
)
|
|
|
|
// IssueTX represents a issue transaction.
|
|
// This TX has not special attributes.
|
|
type IssueTX struct{}
|
|
|
|
// DecodeBinary implements the Payload interface.
|
|
func (tx *IssueTX) DecodeBinary(r *io.BinReader) error {
|
|
return nil
|
|
}
|
|
|
|
// EncodeBinary implements the Payload interface.
|
|
func (tx *IssueTX) EncodeBinary(w *io.BinWriter) error {
|
|
return nil
|
|
}
|
|
|
|
// Size returns serialized binary size for this transaction.
|
|
func (tx *IssueTX) Size() int {
|
|
return 0
|
|
}
|