This commit is contained in:
Ethan Frey
2017-07-11 13:56:39 +02:00
parent 11a8c0d9a2
commit fbdec34ea6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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)
}