Query uses type bytes

This commit is contained in:
Jae Kwon
2016-03-27 21:51:04 -07:00
parent a63bc3fc46
commit f491c8d8fb
2 changed files with 21 additions and 15 deletions
+4
View File
@@ -18,6 +18,7 @@ Account Types:
*/
type Tx interface {
AssertIsTx()
SignBytes(chainID string) []byte
}
@@ -28,6 +29,9 @@ const (
TxTypeApp = byte(0x02)
)
func (_ *SendTx) AssertIsTx() {}
func (_ *AppTx) AssertIsTx() {}
var _ = wire.RegisterInterface(
struct{ Tx }{},
wire.ConcreteType{&SendTx{}, TxTypeSend},