mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-26 19:21:44 +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