fix auction keeper and flags

This commit is contained in:
0xmuralik
2022-10-11 14:01:42 +05:30
parent 56d59feaa0
commit c57b8fd29f
5 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -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},
+8
View File
@@ -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
}