diff --git a/tests/e2e/auction/suite.go b/tests/e2e/auction/suite.go index e055f5d7..94285a48 100644 --- a/tests/e2e/auction/suite.go +++ b/tests/e2e/auction/suite.go @@ -103,10 +103,13 @@ func (ets *E2ETestSuite) createAuctionAndBid(createAuction, createBid bool) stri if createAuction { auctionArgs := []string{ + types.AuctionKindVickrey, sampleCommitTime, sampleRevealTime, fmt.Sprintf("10%s", ets.cfg.BondDenom), fmt.Sprintf("10%s", ets.cfg.BondDenom), fmt.Sprintf("100%s", ets.cfg.BondDenom), + fmt.Sprintf("0%s", ets.cfg.BondDenom), + "0", } resp, err := ets.executeTx(cli.GetCmdCreateAuction(), auctionArgs, ownerAccount) diff --git a/tests/e2e/auction/tx.go b/tests/e2e/auction/tx.go index f259f539..1c33a073 100644 --- a/tests/e2e/auction/tx.go +++ b/tests/e2e/auction/tx.go @@ -46,10 +46,13 @@ func (ets *E2ETestSuite) TestTxCommitBid() { ets.Run(fmt.Sprintf("Case %s", test.msg), func() { if test.createAuction { auctionArgs := []string{ + auctiontypes.AuctionKindVickrey, sampleCommitTime, sampleRevealTime, fmt.Sprintf("10%s", ets.cfg.BondDenom), fmt.Sprintf("10%s", ets.cfg.BondDenom), fmt.Sprintf("100%s", ets.cfg.BondDenom), + fmt.Sprintf("0%s", ets.cfg.BondDenom), + "0", } resp, err := ets.executeTx(cli.GetCmdCreateAuction(), auctionArgs, ownerAccount) diff --git a/x/auction/client/cli/tx.go b/x/auction/client/cli/tx.go index 2f094b78..4e285f37 100644 --- a/x/auction/client/cli/tx.go +++ b/x/auction/client/cli/tx.go @@ -174,11 +174,10 @@ func GetCmdCreateAuction() *cobra.Command { return err } - numProvidersInt, err := strconv.Atoi(args[7]) + numProviders, err := strconv.ParseInt(args[7], 10, 32) if err != nil { return err } - numProviders := int32(numProvidersInt) msg := auctiontypes.NewMsgCreateAuction( kind, @@ -188,7 +187,7 @@ func GetCmdCreateAuction() *cobra.Command { revealFee, minimumBid, maxPrice, - numProviders, + int32(numProviders), clientCtx.GetFromAddress(), ) err = msg.ValidateBasic()