Skip to content

Commit

Permalink
test(tokenfactory): module params query
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Sep 21, 2023
1 parent 2cd485d commit 6c61c78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions x/tokenfactory/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
@@ -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())
}
5 changes: 3 additions & 2 deletions x/tokenfactory/keeper/keeper_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package keeper_test

import (
"context"
"testing"

"github.com/stretchr/testify/suite"
Expand Down Expand Up @@ -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) }

0 comments on commit 6c61c78

Please sign in to comment.