forked from cerc-io/laconicd-deprecated
fix auction keeper and flags
This commit is contained in:
@@ -335,7 +335,7 @@ func (suite *KeeperTestSuite) createAuctionAndCommitBid(commitBid bool) (*types.
|
||||
}
|
||||
|
||||
r := rand.New(rand.NewSource(seed))
|
||||
accounts := app.RandomAccounts(r, 1)
|
||||
accounts := app.RandomAccounts(r, accCount)
|
||||
for _, account := range accounts {
|
||||
err := testutil.FundAccount(suite.app.BankKeeper, ctx, account.Address, sdk.NewCoins(
|
||||
sdk.Coin{Amount: sdk.NewInt(100), Denom: sdk.DefaultBondDenom},
|
||||
|
||||
@@ -2,6 +2,7 @@ package cli
|
||||
|
||||
import (
|
||||
"github.com/cerc-io/laconicd/server/flags"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/bond/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
@@ -51,6 +52,7 @@ func NewCreateBondCmd() *cobra.Command {
|
||||
}
|
||||
|
||||
flags.AddTxFlags(cmd)
|
||||
// flags.AddTxFlagsToCmd(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
@@ -76,6 +78,8 @@ func RefillBondCmd() *cobra.Command {
|
||||
},
|
||||
}
|
||||
flags.AddTxFlags(cmd)
|
||||
// flags.AddTxFlagsToCmd(cmd)
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
@@ -101,6 +105,8 @@ func WithdrawBondCmd() *cobra.Command {
|
||||
},
|
||||
}
|
||||
flags.AddTxFlags(cmd)
|
||||
// flags.AddTxFlagsToCmd(cmd)
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
@@ -121,5 +127,7 @@ func CancelBondCmd() *cobra.Command {
|
||||
},
|
||||
}
|
||||
flags.AddTxFlags(cmd)
|
||||
// flags.AddTxFlagsToCmd(cmd)
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user