Skip to content

Commit

Permalink
semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
muku314115 committed Nov 6, 2023
1 parent 98e236b commit b2eb55f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions testutil/keeper/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ import (

// CreateCoordinator creates a coordinator in the store and returns ID with associated address
func (tm TestMsgServers) CreateCoordinator(ctx context.Context, r *rand.Rand) (id uint64, address sdk.AccAddress) {
addr := sample.AccAddress(r)
res, err := tm.ProfileSrv.CreateCoordinator(ctx, &profiletypes.MsgCreateCoordinator{
Address: addr.String(),
Description: sample.CoordinatorDescription(r),
})
require.NoError(tm.T, err)
return res.CoordinatorID, addr
return tm.CreateCoordinatorWithAddr(ctx, r, sample.Address(r))
}

// CreateCoordinator creates a coordinator in the store and returns ID with associated address
Expand Down

0 comments on commit b2eb55f

Please sign in to comment.