Skip to content

Commit

Permalink
change to validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ulbqb committed Feb 6, 2024
1 parent 0c6a3b6 commit a46b6df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/stakingplus/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ func (s *KeeperTestSuite) TestMsgCreateValidator() {
Return(&stakingtypes.MsgCreateValidatorResponse{}, nil)

testCases := map[string]struct {
delegator sdk.AccAddress
validator sdk.AccAddress
valid bool
}{
"valid request": {
delegator: grantee,
validator: grantee,
valid: true,
},
"no grant found": {
delegator: stranger,
validator: stranger,
},
}

Expand All @@ -52,7 +52,7 @@ func (s *KeeperTestSuite) TestMsgCreateValidator() {
pk := simtestutil.CreateTestPubKeys(1)[0]
delegation := sdk.NewCoin(sdk.DefaultBondDenom, math.OneInt())
req, err := stakingtypes.NewMsgCreateValidator(
sdk.ValAddress(tc.delegator).String(),
sdk.ValAddress(tc.validator).String(),
pk,
delegation,
stakingtypes.Description{
Expand Down

0 comments on commit a46b6df

Please sign in to comment.