diff --git a/x/tokenfactory/keeper/grpc_query_test.go b/x/tokenfactory/keeper/grpc_query_test.go new file mode 100644 index 000000000..652f0e8de --- /dev/null +++ b/x/tokenfactory/keeper/grpc_query_test.go @@ -0,0 +1,11 @@ +package keeper_test + +import ( + "github.com/NibiruChain/nibiru/x/tokenfactory/types" +) + +func (s *TestSuite) TestQueryModuleParams() { + res, err := s.queryClient.Params(s.GoCtx(), &types.QueryParamsRequest{}) + s.NoError(err) + s.Equal(*res, types.DefaultModuleParams()) +} diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index a12609947..438820430 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "context" "testing" "github.com/stretchr/testify/suite" @@ -46,6 +47,6 @@ func (s *TestSuite) SetupTest() { queryGrpcHelper := baseapp.NewQueryServerTestHelper( s.ctx, s.app.InterfaceRegistry()) s.queryClient = tftypes.NewQueryClient(queryGrpcHelper) - - // s.msgServer = s.app.TokenfactoryKeeper } + +func (s *TestSuite) GoCtx() context.Context { return sdk.WrapSDKContext(s.ctx) }