Skip to content

Commit

Permalink
add calimer for msgClaim simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Aug 6, 2024
1 parent 1bab70f commit b316d89
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 70 deletions.
40 changes: 20 additions & 20 deletions api/modules/claim/v1/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions x/claim/simulation/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ func SimulateMsgClaim(
) simtypes.Operation {
return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string,
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
msg := &types.MsgClaim{}

// find an account
simAccount, _ := simtypes.RandomAcc(r, accs)
msg := &types.MsgClaim{
Claimer: simAccount.Address.String(),
}

// check the account has a claim record and initial claim has not been completed
cr, err := k.ClaimRecord.Get(ctx, simAccount.Address.String())
Expand Down
94 changes: 47 additions & 47 deletions x/claim/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b316d89

Please sign in to comment.