(ctx context.Context, msg *types.MsgSetParams)
| 13 | } |
| 14 | |
| 15 | func (m msgServer) SetParams(ctx context.Context, msg *types.MsgSetParams) (*types.MsgSetParamsResponse, error) { |
| 16 | addr, err := sdk.AccAddressFromBech32(msg.Signer) |
| 17 | if err != nil { |
| 18 | return nil, err |
| 19 | } |
| 20 | |
| 21 | if !m.keeper.IsAdminAccount(sdk.UnwrapSDKContext(ctx), types.AdminType_ADMIN, addr) { |
| 22 | return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "unauthorised signer") |
| 23 | } |
| 24 | |
| 25 | m.keeper.SetParams(sdk.UnwrapSDKContext(ctx), msg.Params) |
| 26 | return &types.MsgSetParamsResponse{}, nil |
| 27 | } |
| 28 | |
| 29 | func (m msgServer) AddAccount(ctx context.Context, msg *types.MsgAddAccount) (*types.MsgAddAccountResponse, error) { |
| 30 | addr, err := sdk.AccAddressFromBech32(msg.Signer) |
no test coverage detected