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)
|
|
}
|