Browse Source

Encode dummy query values as hex strings

pull/1780/head
Matt Bell 8 years ago
parent
commit
75ea378a6a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      example/dummy/dummy.go

+ 2
- 2
example/dummy/dummy.go View File

@ -1,6 +1,7 @@
package dummy
import (
"encoding/hex"
"strings"
. "github.com/tendermint/go-common"
@ -48,8 +49,7 @@ func (app *DummyApplication) Commit() types.Result {
func (app *DummyApplication) Query(query []byte) types.Result {
index, value, exists := app.state.Get(query)
queryResult := QueryResult{index, string(value), exists}
queryResult := QueryResult{index, hex.EncodeToString(value), exists}
return types.NewResultOK(wire.JSONBytes(queryResult), "")
}


Loading…
Cancel
Save