Skip to content

Commit

Permalink
return error
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Nov 29, 2023
1 parent d6e6641 commit b1e5d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/bank/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ func SimulateMsgSend(

fromstr, err := ak.AddressCodec().BytesToString(from.Address)
if err != nil {
return simtypes.NoOpMsg(types.ModuleName, msgType, err.Error()), nil, err
return simtypes.NoOpMsg(types.ModuleName, msgType, err.Error()), nil, nil
}
tostr, err := ak.AddressCodec().BytesToString(to.Address)
if err != nil {
return simtypes.NoOpMsg(types.ModuleName, msgType, err.Error()), nil, err
return simtypes.NoOpMsg(types.ModuleName, msgType, err.Error()), nil, nil
}

msg := types.NewMsgSend(fromstr, tostr, coins)
Expand Down

0 comments on commit b1e5d10

Please sign in to comment.