Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bermuell committed Oct 11, 2023
1 parent de3bef2 commit 1d99b35
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions x/ccv/consumer/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const (
EventTypeConsumerSlashRequest = "consumer_slash_request"
EventTypeFeeTransferChannelOpened = "fee_transfer_channel_opened"

//#nosec G101 -- (false positive) this is not a hardcoded credential
AttributeDistributionCurrentHeight = "current_distribution_height"
AttributeDistributionNextHeight = "next_distribution_height"
AttributeDistributionFraction = "distribution_fraction"
AttributeDistributionTotal = "total"
AttributeDistributionToProvider = "provider_amount"
//#nosec G101 -- (false positive) this is not a hardcoded credential
AttributeDistributionNextHeight = "next_distribution_height"
AttributeDistributionFraction = "distribution_fraction"
AttributeDistributionTotal = "total"
AttributeDistributionToProvider = "provider_amount"
)
2 changes: 2 additions & 0 deletions x/ccv/provider/keeper/proposal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ func TestPendingConsumerAdditionPropDeletion(t *testing.T) {
defer ctrl.Finish()

for _, tc := range testCases {
tc := tc
providerKeeper.SetPendingConsumerAdditionProp(ctx, &tc.ConsumerAdditionProposal)
}

Expand Down Expand Up @@ -580,6 +581,7 @@ func TestPendingConsumerRemovalPropDeletion(t *testing.T) {
defer ctrl.Finish()

for _, tc := range testCases {
tc := tc
providerKeeper.SetPendingConsumerRemovalProp(ctx, &tc.ConsumerRemovalProposal)
}

Expand Down
14 changes: 6 additions & 8 deletions x/ccv/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
)

var (
// ModuleCdc references the global x/ibc-transfer module codec. Note, the codec
// should ONLY be used in certain instances of tests and for JSON encoding.
//
// The actual codec used for serialization should be provided to x/ibc transfer and
// defined at the application level.
ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
)
// ModuleCdc references the global x/ibc-transfer module codec. Note, the codec
// should ONLY be used in certain instances of tests and for JSON encoding.
//
// The actual codec used for serialization should be provided to x/ibc transfer and
// defined at the application level.
var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())

func init() {
}

0 comments on commit 1d99b35

Please sign in to comment.