Revert changes to app1 router

This commit is contained in:
Aditya Sripal 2018-06-26 19:24:14 -07:00 committed by Ethan Buchman
parent e11e469340
commit 41c61d2cc7
1 changed files with 2 additions and 2 deletions

View File

@ -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.