Skip to content

Commit

Permalink
feat(staking/validator): add fn to generate random SocialHandleURIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ziscky committed Sep 21, 2024
1 parent c894be1 commit 1862040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/staking/simulation/msg_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func MsgCreateValidatorFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.Ms
r.StringN(10),
types.Metadata{
ProfilePicUri: RandURIOfHostLength(r.Rand, 10),
SocialHandleUris: RandSocialHandles(r.Rand, 2, 10),
SocialHandleUris: RandSocialHandleURIs(r.Rand, 2, 10),
},
)

Expand Down Expand Up @@ -145,7 +145,7 @@ func MsgEditValidatorFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgE
valOper := testData.GetAccountbyAccAddr(reporter, valOpAddrBz)
d := types.NewDescription(r.StringN(10), r.StringN(10), r.StringN(10), r.StringN(10), r.StringN(10), types.Metadata{
ProfilePicUri: RandURIOfHostLength(r.Rand, 10),
SocialHandleUris: RandSocialHandles(r.Rand, 2, 10),
SocialHandleUris: RandSocialHandleURIs(r.Rand, 2, 10),
})

msg := types.NewMsgEditValidator(val.GetOperator(), d, &newCommissionRate, nil)
Expand Down

0 comments on commit 1862040

Please sign in to comment.