set Code to OK in ResponseQuery in BaseApplication

See https://github.com/tendermint/abci/pull/130#discussion_r152713220
This commit is contained in:
Anton Kaliaev
2017-11-24 16:45:36 -06:00
parent 9b30fab4fc
commit 67d2a5f66d

View File

@ -28,7 +28,7 @@ func (BaseApplication) Commit() ResponseCommit {
} }
func (BaseApplication) Query(req RequestQuery) ResponseQuery { func (BaseApplication) Query(req RequestQuery) ResponseQuery {
return ResponseQuery{} return ResponseQuery{Code: CodeType_OK}
} }
func (BaseApplication) InitChain(req RequestInitChain) { func (BaseApplication) InitChain(req RequestInitChain) {