Skip to content

Commit

Permalink
remove expedited prop logic from e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Dec 29, 2023
1 parent 7665e0b commit 5540749
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions x/gov/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"math/rand"
"time"

sdkmath "cosmossdk.io/math"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
Expand Down Expand Up @@ -198,10 +197,10 @@ func simulateMsgSubmitProposal(ak types.AccountKeeper, bk types.BankKeeper, k *k
return simtypes.NoOpMsg(types.ModuleName, TypeMsgSubmitProposal, "unable to generate deposit"), nil, err
}

expedited := r.Intn(2) == 0
if expedited {
deposit = deposit.MulInt(sdkmath.NewInt(v1.DefaultMinExpeditedDepositTokensRatio))
}
// expedited := r.Intn(2) == 0
// if expedited {
// deposit = deposit.MulInt(sdkmath.NewInt(v1.DefaultMinExpeditedDepositTokensRatio))
// }

msg, err := v1.NewMsgSubmitProposal(
proposalMsgs,
Expand All @@ -210,7 +209,7 @@ func simulateMsgSubmitProposal(ak types.AccountKeeper, bk types.BankKeeper, k *k
simtypes.RandStringOfLength(r, 100),
simtypes.RandStringOfLength(r, 100),
simtypes.RandStringOfLength(r, 100),
expedited,
false,
)
if err != nil {
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate a submit proposal msg"), nil, err
Expand Down

0 comments on commit 5540749

Please sign in to comment.