minor things

This commit is contained in:
Ethan Buchman
2018-02-06 17:20:29 -05:00
parent b21081c83a
commit d48c819207
2 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -201,12 +201,12 @@ func (app *BaseApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitC
// Implements ABCI.
// Delegates to CommitMultiStore if it implements Queryable
func (app *BaseApp) Query(req abci.RequestQuery) (res abci.ResponseQuery) {
query, ok := app.cms.(sdk.Queryable)
queryable, ok := app.cms.(sdk.Queryable)
if !ok {
msg := "application doesn't support queries"
return sdk.ErrUnknownRequest(msg).Result().ToQuery()
}
return query.Query(req)
return queryable.Query(req)
}
// Implements ABCI.