Skip to content

Commit

Permalink
fix g115 overflow lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentysc committed Nov 25, 2024
1 parent 07c1422 commit 6de735c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion infrastructure/tendermint/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func ParseBlockResultsResp(rawRespReader io.Reader, eventAttributeDecoder tender

txsResults := parseBlockResultsTxsResults(rawBlockResults.TxsResults, eventAttributeDecoder)
return &model.BlockResults{
// disable G115
//nolint:gosec
Height: int64(height),
TxsResults: txsResults,
BeginBlockEvents: beginBlockEvents,
Expand Down
2 changes: 1 addition & 1 deletion projection/validator/view/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ func (validatorsView *ValidatorsView) List(
).From(
VALIDATORS_TABLE_NAME,
).Offset(0).Limit(
// disable G115
//nolint:gosec
uint64(pagination.OffsetParams().Offset()),
)
cumulativePowerStmtBuilder = cumulativePowerStmtBuilder.OrderBy(orderClauses...)
Expand Down
2 changes: 1 addition & 1 deletion usecase/parser/gov/v1/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func ParseMsgSubmitProposal(
"/cosmos.consensus.v1.MsgUpdateParams":
break
default:
// disable G115
//nolint:gosec
parser := parserParams.ParserManager.GetParser(utils.CosmosParserKey(innerMsgType), utils.ParserBlockHeight(blockHeight))

msgCommands, signers := parser(utils.CosmosParserParams{
Expand Down
2 changes: 1 addition & 1 deletion usecase/parser/v0_42_7/ibcmsg/ibcmsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func ParseMsgSubmitTx(
// https://github.com/crypto-com/chain-indexing/issues/673
continue
default:
// disable G115
//nolint:gosec
parser := parserParams.ParserManager.GetParser(utils.CosmosParserKey(message.Type), utils.ParserBlockHeight(parserParams.MsgCommonParams.BlockHeight))
innerMsgs[msgIndex]["msg_index"] = strconv.Itoa(msgIndex)
msgCommands, signers := parser(utils.CosmosParserParams{
Expand Down

0 comments on commit 6de735c

Please sign in to comment.