Skip to content

Commit

Permalink
fix sims
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Mar 15, 2024
1 parent a7d8882 commit 9b447a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func SimulateMsgDelete<%= TypeName.UpperCamel %>(
msg = &types.MsgUpdate<%= TypeName.UpperCamel %>{}
<%= TypeName.LowerCamel %>, err = k.<%= TypeName.UpperCamel %>.Get(ctx)
)
if !errors.Is(err, collections.ErrNotFound) {
if err != nil {
return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "<%= TypeName.LowerCamel %> store is empty"), nil, nil
}
simAccount, found := FindAccount(accs, <%= TypeName.LowerCamel %>.<%= MsgSigner.UpperCamel %>)
Expand Down

0 comments on commit 9b447a3

Please sign in to comment.