make TXer and Payload implement Serializable

Both are duplicating Serializable at the moment, but let's keep them for the
future.
This commit is contained in:
Roman Khimov 2019-09-16 16:11:01 +03:00
parent e299a44983
commit 0bb8950f89
2 changed files with 2 additions and 4 deletions

View file

@ -5,6 +5,5 @@ import "github.com/CityOfZion/neo-go/pkg/io"
// TXer is interface that can act as the underlying data of
// a transaction.
type TXer interface {
DecodeBinary(*io.BinReader) error
EncodeBinary(*io.BinWriter) error
io.Serializable
}

View file

@ -4,8 +4,7 @@ import "github.com/CityOfZion/neo-go/pkg/io"
// Payload is anything that can be binary encoded/decoded.
type Payload interface {
EncodeBinary(*io.BinWriter) error
DecodeBinary(*io.BinReader) error
io.Serializable
}
// NullPayload is a dummy payload with no fields.