minor things
This commit is contained in:
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user