From 41c61d2cc7cde3257e5e7e0bb2a1a3dbb7d7a004 Mon Sep 17 00:00:00 2001 From: Aditya Sripal Date: Tue, 26 Jun 2018 19:24:14 -0700 Subject: [PATCH] Revert changes to app1 router --- docs/core/examples/app1.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/examples/app1.go b/docs/core/examples/app1.go index 861ba4b70e..cc4389bf36 100644 --- a/docs/core/examples/app1.go +++ b/docs/core/examples/app1.go @@ -35,7 +35,7 @@ func NewApp1(logger log.Logger, db dbm.DB) *bapp.BaseApp { // Register message routes. // Note the handler gets access to the account store. app.Router(). - AddRoute("send", NewApp1Handler(keyAccount)) + AddRoute("bank", NewApp1Handler(keyAccount)) // Mount stores and load the latest state. app.MountStoresIAVL(keyAccount) @@ -65,7 +65,7 @@ func NewMsgSend(from, to sdk.Address, amt sdk.Coins) MsgSend { } // Implements Msg. -func (msg MsgSend) Type() string { return "send" } +func (msg MsgSend) Type() string { return "bank" } // Implements Msg. Ensure the addresses are good and the // amount is positive.