Skip to content

Commit ab6e84a

Browse files
committed
chore: running make format for consistency
1 parent a221871 commit ab6e84a

File tree

16 files changed

+11
-21
lines changed

16 files changed

+11
-21
lines changed

app/sovereign/export.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
8181
// withdraw all validator commission
8282
app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
8383
valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator())
84-
8584
if err != nil {
8685
panic(err)
8786
}

tests/e2e/actions.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ func (tr Chain) submitConsumerAdditionProposal(
334334
fmt.Println("submitConsumerAdditionProposal json:", jsonStr)
335335
}
336336
bz, err = cmd.CombinedOutput()
337-
338337
if err != nil {
339338
log.Fatal(err, "\n", string(bz))
340339
}
@@ -1010,7 +1009,6 @@ func (tr Chain) addChainToHermes(
10101009
action AddChainToRelayerAction,
10111010
verbose bool,
10121011
) {
1013-
10141012
bz, err := tr.target.ExecCommand("bash", "-c", "hermes", "version").CombinedOutput()
10151013
if err != nil {
10161014
log.Fatal(err, "\n error getting hermes version", string(bz))
@@ -1916,7 +1914,7 @@ func (tr Chain) registerRepresentative(
19161914
panic(fmt.Sprintf("failed writing ccv consumer file : %v", err))
19171915
}
19181916
defer file.Close()
1919-
err = os.WriteFile(file.Name(), []byte(fileContent), 0600)
1917+
err = os.WriteFile(file.Name(), []byte(fileContent), 0o600)
19201918
if err != nil {
19211919
log.Fatalf("Failed writing consumer genesis to file: %v", err)
19221920
}

tests/e2e/state.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ func (tr Commands) GetReward(chain ChainID, validator ValidatorID, blockHeight u
370370
)
371371

372372
bz, err := cmd.CombinedOutput()
373-
374373
if err != nil {
375374
log.Fatal("failed getting rewards: ", err, "\n", string(bz))
376375
}
@@ -385,7 +384,7 @@ func (tr Commands) GetReward(chain ChainID, validator ValidatorID, blockHeight u
385384

386385
// interchain-securityd query gov proposals
387386
func (tr Commands) GetProposal(chain ChainID, proposal uint) Proposal {
388-
var noProposalRegex = regexp.MustCompile(`doesn't exist: key not found`)
387+
noProposalRegex := regexp.MustCompile(`doesn't exist: key not found`)
389388

390389
binaryName := tr.chainConfigs[chain].BinaryName
391390
bz, err := tr.target.ExecCommand(binaryName,

tests/e2e/state_rapid_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ func GetIBCTransferParamsGen() *rapid.Generator[IBCTransferParams] {
117117
ReceiveEnabled: rapid.Bool().Draw(t, "ReceiveEnabled"),
118118
}
119119
})
120-
121120
}
122121

123122
func GetIBCTransferParamsProposalGen() *rapid.Generator[IBCTransferParamsProposal] {

tests/e2e/steps_compatibility.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func compstepsStartConsumerChain(consumerName string, proposalIndex, chainIndex
127127
Chain: ChainID(consumerName),
128128
SpawnTime: 0,
129129
InitialHeight: clienttypes.Height{RevisionNumber: 0, RevisionHeight: 1},
130-
Status: strconv.Itoa(int(gov.ProposalStatus_PROPOSAL_STATUS_PASSED)), //TODO: CHECK if this is bug on SDK SIDE!!!: should be as before gov.ProposalStatus(gov.ProposalStatus_PROPOSAL_STATUS_PASSED).String(),
130+
Status: strconv.Itoa(int(gov.ProposalStatus_PROPOSAL_STATUS_PASSED)), // TODO: CHECK if this is bug on SDK SIDE!!!: should be as before gov.ProposalStatus(gov.ProposalStatus_PROPOSAL_STATUS_PASSED).String(),
131131
},
132132
},
133133
ValBalances: &map[ValidatorID]uint{

tests/e2e/testlib/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"os/exec"
88
)
99

10-
var verbose *bool //TODO: remove hack
10+
var verbose *bool // TODO: remove hack
1111

1212
func ExecuteCommandWithVerbosity(cmd *exec.Cmd, cmdName string, verbose bool) {
1313
if verbose {

tests/e2e/v4/state.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func (tr Commands) GetBalance(chain ChainID, validator ValidatorID) uint {
236236

237237
// interchain-securityd query gov proposals
238238
func (tr Commands) GetProposal(chain ChainID, proposal uint) Proposal {
239-
var noProposalRegex = regexp.MustCompile(`doesn't exist: key not found`)
239+
noProposalRegex := regexp.MustCompile(`doesn't exist: key not found`)
240240

241241
binaryName := tr.ChainConfigs[chain].BinaryName
242242
bz, err := tr.Target.ExecCommand(binaryName,
@@ -411,6 +411,7 @@ func (tr Commands) GetConsumerChains(chain ChainID) map[ChainID]bool {
411411

412412
return chains
413413
}
414+
414415
func (tr Commands) GetConsumerAddress(consumerChain ChainID, validator ValidatorID) string {
415416
binaryName := tr.ChainConfigs[ChainID("provi")].BinaryName
416417
cmd := tr.Target.ExecCommand(binaryName,

tests/integration/democracy.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ func (s *ConsumerDemocracyTestSuite) TestDemocracyMsgUpdateParams() {
316316

317317
// deposit is refunded
318318
s.Assert().Equal(votersOldBalances, getAccountsBalances(s.consumerCtx(), bankKeeper, bondDenom, votingAccounts))
319-
320319
}
321320

322321
func submitProposalWithDepositAndVote(govKeeper govkeeper.Keeper, ctx sdk.Context, msgs []sdk.Msg,

tests/integration/distribution.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ func (s *CCVTestSuite) TestRewardsDistribution() {
138138
consuValsRewards := consumerValsOutstandingRewardsFunc(s.providerCtx())
139139

140140
// increase the block height so validators are eligible for consumer rewards (see `IsEligibleForConsumerRewards`)
141-
numberOfBlocksToStartReceivingRewards :=
142-
providerKeeper.GetNumberOfEpochsToStartReceivingRewards(s.providerCtx()) * providerKeeper.GetBlocksPerEpoch(s.providerCtx())
141+
numberOfBlocksToStartReceivingRewards := providerKeeper.GetNumberOfEpochsToStartReceivingRewards(s.providerCtx()) * providerKeeper.GetBlocksPerEpoch(s.providerCtx())
143142

144143
for s.providerCtx().BlockHeight() <= numberOfBlocksToStartReceivingRewards {
145144
s.providerChain.NextBlock()

x/ccv/consumer/types/codec.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
// RegisterInterfaces registers the consumer Tx message types to the interface registry
1111
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
12-
1312
registry.RegisterImplementations(
1413
(*sdk.Msg)(nil),
1514
&MsgUpdateParams{},

0 commit comments

Comments
 (0)