chore: gofumpt (#11839)
* fumpt using main not master... * be more descriptive * fumpt * fix nits Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
bc2d553f77
commit
55054282d2
@@ -770,7 +770,7 @@ func (s *IntegrationTestSuite) TestTallyResult() {
|
||||
|
||||
member := s.voter
|
||||
|
||||
var commonFlags = []string{
|
||||
commonFlags := []string{
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(10))).String()),
|
||||
@@ -872,5 +872,4 @@ func (s *IntegrationTestSuite) TestTallyResult() {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
|
||||
)
|
||||
|
||||
s.Require().NoError(err, out.String())
|
||||
var txResp = sdk.TxResponse{}
|
||||
txResp := sdk.TxResponse{}
|
||||
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &txResp), out.String())
|
||||
s.Require().Equal(uint32(0), txResp.Code, out.String())
|
||||
|
||||
@@ -213,6 +213,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroup() {
|
||||
val := s.network.Validators[0]
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
|
||||
validMembers := fmt.Sprintf(`{"members": [{
|
||||
"address": "%s",
|
||||
"weight": "1",
|
||||
@@ -365,6 +366,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupAdmin() {
|
||||
clientCtx := val.ClientCtx
|
||||
require := s.Require()
|
||||
|
||||
|
||||
groupIDs := make([]string, 2)
|
||||
for i := 0; i < 2; i++ {
|
||||
validMembers := fmt.Sprintf(`{"members": [{
|
||||
@@ -485,6 +487,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupMetadata() {
|
||||
val := s.network.Validators[0]
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
args []string
|
||||
@@ -565,6 +568,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupMembers() {
|
||||
val := s.network.Validators[0]
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
|
||||
weights := []string{"1", "1", "1"}
|
||||
accounts := s.createAccounts(3)
|
||||
|
||||
@@ -687,6 +691,9 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
val := s.network.Validators[0]
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
|
||||
|
||||
|
||||
validMembers := fmt.Sprintf(`{"members": [{
|
||||
"address": "%s",
|
||||
"weight": "1",
|
||||
@@ -892,6 +899,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
wrongAdmin := s.network.Validators[1].Address
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
|
||||
groupID := s.group.Id
|
||||
|
||||
testCases := []struct {
|
||||
@@ -1059,6 +1067,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyAdmin() {
|
||||
clientCtx := val.ClientCtx
|
||||
groupPolicy := s.groupPolicies[3]
|
||||
|
||||
|
||||
commonFlags := s.commonFlags
|
||||
commonFlags = append(commonFlags, fmt.Sprintf("--%s=%d", flags.FlagGas, 300000))
|
||||
|
||||
@@ -1159,6 +1168,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
|
||||
clientCtx := val.ClientCtx
|
||||
groupPolicy := s.groupPolicies[2]
|
||||
|
||||
|
||||
commonFlags := s.commonFlags
|
||||
commonFlags = append(commonFlags, fmt.Sprintf("--%s=%d", flags.FlagGas, 300000))
|
||||
|
||||
@@ -1304,6 +1314,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyMetadata() {
|
||||
clientCtx := val.ClientCtx
|
||||
groupPolicy := s.groupPolicies[2]
|
||||
|
||||
|
||||
commonFlags := s.commonFlags
|
||||
commonFlags = append(commonFlags, fmt.Sprintf("--%s=%d", flags.FlagGas, 300000))
|
||||
|
||||
@@ -1417,6 +1428,7 @@ func (s *IntegrationTestSuite) TestTxSubmitProposal() {
|
||||
val := s.network.Validators[0]
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
args []string
|
||||
@@ -1605,6 +1617,7 @@ func (s *IntegrationTestSuite) TestTxVote() {
|
||||
val := s.network.Validators[0]
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
|
||||
ids := make([]string, 4)
|
||||
weights := []string{"1", "1", "1"}
|
||||
accounts := s.createAccounts(3)
|
||||
@@ -1798,6 +1811,7 @@ func (s *IntegrationTestSuite) TestTxWithdrawProposal() {
|
||||
val := s.network.Validators[0]
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
|
||||
ids := make([]string, 2)
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
@@ -1940,6 +1954,7 @@ func (s *IntegrationTestSuite) TestTxExec() {
|
||||
clientCtx := val.ClientCtx
|
||||
require := s.Require()
|
||||
|
||||
|
||||
var proposalIDs []string
|
||||
// create proposals and vote
|
||||
for i := 0; i < 2; i++ {
|
||||
|
||||
Reference in New Issue
Block a user