Skip to content

Commit

Permalink
pass lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jan 1, 2024
1 parent 59daec0 commit 124741f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x/chainmain/client/cli/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func initGenFiles(
// set gov min_deposit in the genesis state
var govGenState govv1.GenesisState
clientCtx.Codec.MustUnmarshalJSON(appGenState[govtypes.ModuleName], &govGenState)
govGenState.DepositParams.MinDeposit[0].Denom = baseDenom
govGenState.DepositParams.MinDeposit[0].Denom = baseDenom //nolint:staticcheck

Check warning on line 409 in x/chainmain/client/cli/testnet.go

View check run for this annotation

Codecov / codecov/patch

x/chainmain/client/cli/testnet.go#L409

Added line #L409 was not covered by tests
appGenState[govtypes.ModuleName] = clientCtx.Codec.MustMarshalJSON(&govGenState)

// set mint in the genesis state
Expand Down
2 changes: 1 addition & 1 deletion x/icaauth/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (k *Keeper) DoSubmitTx(ctx sdk.Context, connectionID, owner string, msgs []

timeoutTimestamp := ctx.BlockTime().Add(timeoutDuration).UnixNano()

_, err = k.icaControllerKeeper.SendTx(ctx, nil, connectionID, portID, packetData, uint64(timeoutTimestamp))
_, err = k.icaControllerKeeper.SendTx(ctx, nil, connectionID, portID, packetData, uint64(timeoutTimestamp)) //nolint:staticcheck

Check failure

Code scanning / gosec

Potential integer overflow by integer type conversion Error

Potential integer overflow by integer type conversion

Check warning on line 81 in x/icaauth/keeper/keeper.go

View check run for this annotation

Codecov / codecov/patch

x/icaauth/keeper/keeper.go#L81

Added line #L81 was not covered by tests
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion x/nft-transfer/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
}

// ProposalContents doesn't return any content functions for governance proposals.
func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent {
func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { //nolint:staticcheck

Check warning on line 142 in x/nft-transfer/module.go

View check run for this annotation

Codecov / codecov/patch

x/nft-transfer/module.go#L142

Added line #L142 was not covered by tests
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion x/nft/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
}

// ProposalContents doesn't return any content functions for governance proposals.
func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent {
func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent { //nolint:staticcheck

Check warning on line 160 in x/nft/module.go

View check run for this annotation

Codecov / codecov/patch

x/nft/module.go#L160

Added line #L160 was not covered by tests
return nil
}

Expand Down

0 comments on commit 124741f

Please sign in to comment.