From fbdec34ea6d7b5a1677c94da171a5bcf123268f3 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Mon, 10 Jul 2017 20:31:48 +0200 Subject: [PATCH] fix typo --- modules/coin/handler.go | 2 +- modules/roles/store_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/coin/handler.go b/modules/coin/handler.go index 590362045..e0b51b89f 100644 --- a/modules/coin/handler.go +++ b/modules/coin/handler.go @@ -104,7 +104,7 @@ func (h Handler) SetOption(l log.Logger, store state.KVStore, module, key, value return "Success", nil } - return errors.ErrUnknownKey(key) + return "", errors.ErrUnknownKey(key) } func checkTx(ctx basecoin.Context, tx basecoin.Tx) (send SendTx, err error) { diff --git a/modules/roles/store_test.go b/modules/roles/store_test.go index a38592cf6..fb69abb8d 100644 --- a/modules/roles/store_test.go +++ b/modules/roles/store_test.go @@ -52,7 +52,7 @@ func TestRole(t *testing.T) { assert.True(role.IsSigner(a), i) } // make sure IsAuthorized works - ctx := stack.MockContext("chain-id").WithPermissions(tc.signers...) + ctx := stack.MockContext("chain-id", 100).WithPermissions(tc.signers...) allowed := role.IsAuthorized(ctx) assert.Equal(tc.valid, allowed, i) }