Skip to content

Commit

Permalink
update module ops
Browse files Browse the repository at this point in the history
  • Loading branch information
sahith-narahari committed Jul 10, 2020
1 parent ba9d70c commit 2531b7b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion x/bank/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func sendMsgSend(
privkeys...,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return err
}

_, _, err = app.Deliver(tx)
Expand Down
8 changes: 4 additions & 4 deletions x/distribution/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func SimulateMsgSetWithdrawAddress(ak types.AccountKeeper, bk types.BankKeeper,
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down Expand Up @@ -164,7 +164,7 @@ func SimulateMsgWithdrawDelegatorReward(ak types.AccountKeeper, bk types.BankKee
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down Expand Up @@ -219,7 +219,7 @@ func SimulateMsgWithdrawValidatorCommission(ak types.AccountKeeper, bk types.Ban
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down Expand Up @@ -274,7 +274,7 @@ func SimulateMsgFundCommunityPool(ak types.AccountKeeper, bk types.BankKeeper, k
funder.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down
6 changes: 3 additions & 3 deletions x/gov/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func SimulateSubmitProposal(
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down Expand Up @@ -241,7 +241,7 @@ func SimulateMsgDeposit(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Ke
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}
_, _, err = app.Deliver(tx)
if err != nil {
Expand Down Expand Up @@ -303,7 +303,7 @@ func operationSimulateMsgVote(ak types.AccountKeeper, bk types.BankKeeper, k kee
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down
2 changes: 1 addition & 1 deletion x/slashing/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func SimulateMsgUnjail(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Kee
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, res, err := app.Deliver(tx)
Expand Down
10 changes: 5 additions & 5 deletions x/staking/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func SimulateMsgCreateValidator(ak types.AccountKeeper, bk types.BankKeeper, k k
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down Expand Up @@ -234,7 +234,7 @@ func SimulateMsgEditValidator(ak types.AccountKeeper, bk types.BankKeeper, k kee
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down Expand Up @@ -307,7 +307,7 @@ func SimulateMsgDelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.K
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down Expand Up @@ -394,7 +394,7 @@ func SimulateMsgUndelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down Expand Up @@ -504,7 +504,7 @@ func SimulateMsgBeginRedelegate(ak types.AccountKeeper, bk types.BankKeeper, k k
simAccount.PrivKey,
)
if err != nil {
simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx")
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate mock tx"), nil, err
}

_, _, err = app.Deliver(tx)
Expand Down

0 comments on commit 2531b7b

Please sign in to comment.