Prathamesh Musale
5e68c7d9b3
Reviewed-on: deep-stack/laconic2d#5 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
17 lines
350 B
Go
17 lines
350 B
Go
package keeper
|
|
|
|
import (
|
|
registrytypes "git.vdb.to/cerc-io/laconic2d/x/registry"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
// GetParams - Get all parameters as types.Params.
|
|
func (k Keeper) GetParams(ctx sdk.Context) (*registrytypes.Params, error) {
|
|
params, err := k.Params.Get(ctx)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return ¶ms, nil
|
|
}
|