mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 23:31:35 +00:00
5c9681508b
We don't need a pointer here and this change makes this field compatible with Transaction.Inputs which is useful in many scenarios.
20 lines
419 B
Go
20 lines
419 B
Go
package transaction
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/io"
|
|
)
|
|
|
|
// ClaimTX represents a claim transaction.
|
|
type ClaimTX struct {
|
|
Claims []Input
|
|
}
|
|
|
|
// DecodeBinary implements Serializable interface.
|
|
func (tx *ClaimTX) DecodeBinary(br *io.BinReader) {
|
|
br.ReadArray(&tx.Claims)
|
|
}
|
|
|
|
// EncodeBinary implements Serializable interface.
|
|
func (tx *ClaimTX) EncodeBinary(bw *io.BinWriter) {
|
|
bw.WriteArray(tx.Claims)
|
|
}
|