From f40e01aadaae4eb37c8c51976944f83dc0b349d4 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 2 Apr 2018 18:30:30 +0300 Subject: [PATCH] fix test --- baseapp/baseapp_test.go | 6 +++--- examples/kvstore/main.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/baseapp/baseapp_test.go b/baseapp/baseapp_test.go index 526500559..1658c591d 100644 --- a/baseapp/baseapp_test.go +++ b/baseapp/baseapp_test.go @@ -249,7 +249,7 @@ func TestDeliverTx(t *testing.T) { counter += 1 return sdk.Result{} - }, nil) + }) tx := testUpdatePowerTx{} // doesn't matter header := abci.Header{AppHash: []byte("apphash")} @@ -284,7 +284,7 @@ func TestQuery(t *testing.T) { store := ctx.KVStore(capKey) store.Set(key, value) return sdk.Result{} - }, nil) + }) query := abci.RequestQuery{ Path: "/main/key", @@ -349,7 +349,7 @@ func TestValidatorChange(t *testing.T) { app.Router().AddRoute(msgType, func(ctx sdk.Context, msg sdk.Msg) sdk.Result { // TODO return sdk.Result{} - }, nil) + }) // Load latest state, which should be empty. err := app.LoadLatestVersion(capKey) diff --git a/examples/kvstore/main.go b/examples/kvstore/main.go index 0cd3d08b8..0d80826ed 100644 --- a/examples/kvstore/main.go +++ b/examples/kvstore/main.go @@ -41,7 +41,7 @@ func main() { baseApp.SetTxDecoder(decodeTx) // Set a handler Route. - baseApp.Router().AddRoute("kvstore", KVStoreHandler(capKeyMainStore), nil) + baseApp.Router().AddRoute("kvstore", KVStoreHandler(capKeyMainStore)) // Load latest version. if err := baseApp.LoadLatestVersion(capKeyMainStore); err != nil {