fix typo
This commit is contained in:
parent
11a8c0d9a2
commit
fbdec34ea6
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue