basecoin compiles

This commit is contained in:
Ethan Buchman
2018-01-14 22:49:57 -05:00
parent d2a801a513
commit 381424460c
8 changed files with 42 additions and 28 deletions
-1
View File
@@ -1 +0,0 @@
package main
+3 -3
View File
@@ -88,11 +88,11 @@ func main() {
// Misc.
func registerMsgs() {
wire.RegisterInterface((*types.Msg), nil)
wire.RegisterConcrete((*bank.SendMsg), nil)
wire.RegisterInterface((*sdk.Msg)(nil), nil)
wire.RegisterConcrete(&bank.SendMsg{}, "com.cosmos.basecoin.send_msg", nil)
}
func decodeTx(txBytes []byte) (types.Tx, error) {
func decodeTx(txBytes []byte) (sdk.Tx, error) {
var tx = sdk.StdTx{}
err := wire.UnmarshalBinary(txBytes, &tx)
return tx, err