Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Aug 31, 2023
1 parent 6df3b63 commit 05ebb8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions x/cronos/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,7 @@ func Migrate(appState genutiltypes.AppMap, clientCtx client.Context) genutiltype
if appState[icatypes.ModuleName] == nil {
appState[icatypes.ModuleName] = clientCtx.Codec.MustMarshalJSON(icagenesistypes.DefaultGenesis())
}

Check warning on line 418 in x/cronos/client/cli/tx.go

View check run for this annotation

Codecov / codecov/patch

x/cronos/client/cli/tx.go#L416-L418

Added lines #L416 - L418 were not covered by tests

// Add icaauthtypes with default genesis.
// Add icaauth with default genesis.
if appState[icaauthtypes.ModuleName] == nil {
appState[icaauthtypes.ModuleName] = clientCtx.Codec.MustMarshalJSON(icaauthtypes.DefaultGenesis())
}

Check warning on line 422 in x/cronos/client/cli/tx.go

View check run for this annotation

Codecov / codecov/patch

x/cronos/client/cli/tx.go#L420-L422

Added lines #L420 - L422 were not covered by tests
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 @@ -79,7 +79,7 @@ func (k *Keeper) DoSubmitTx(ctx sdk.Context, connectionID, owner string, msgs []
// timeoutDuration should be constraited by MinTimeoutDuration parameter.
timeoutTimestamp := ctx.BlockTime().Add(timeoutDuration).UnixNano()

_, err = k.icaControllerKeeper.SendTx(ctx, channelCapability, connectionID, portID, packetData, uint64(timeoutTimestamp))
_, err = k.icaControllerKeeper.SendTx(ctx, channelCapability, 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
if err != nil {
return err
}

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

View check run for this annotation

Codecov / codecov/patch

x/icaauth/keeper/keeper.go#L74-L85

Added lines #L74 - L85 were not covered by tests
Expand Down

0 comments on commit 05ebb8c

Please sign in to comment.