mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-12 06:41:31 +00:00
Query returns Code
This commit is contained in:
@@ -66,6 +66,6 @@ func (app *CounterApplication) GetHash() (hash []byte, log string) {
|
||||
}
|
||||
}
|
||||
|
||||
func (app *CounterApplication) Query(query []byte) (result []byte, log string) {
|
||||
return nil, fmt.Sprintf("Query is not supported")
|
||||
func (app *CounterApplication) Query(query []byte) (code types.RetCode, result []byte, log string) {
|
||||
return types.RetCodeOK, nil, fmt.Sprintf("Query is not supported")
|
||||
}
|
||||
|
||||
@@ -40,6 +40,6 @@ func (app *DummyApplication) GetHash() (hash []byte, log string) {
|
||||
return hash, ""
|
||||
}
|
||||
|
||||
func (app *DummyApplication) Query(query []byte) (result []byte, log string) {
|
||||
return nil, "Query not supported"
|
||||
func (app *DummyApplication) Query(query []byte) (code types.RetCode, result []byte, log string) {
|
||||
return types.RetCodeOK, nil, "Query not supported"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user