Skip to content

Commit

Permalink
chore: update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Jun 28, 2023
1 parent daca511 commit 9467103
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
17 changes: 0 additions & 17 deletions x/ccv/consumer/keeper/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
testkeeper "github.com/cosmos/interchain-security/v3/testutil/keeper"
consumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
"github.com/cosmos/interchain-security/v3/x/ccv/types"
ccv "github.com/cosmos/interchain-security/v3/x/ccv/types"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -308,19 +307,3 @@ func TestSendPacketsFailure(t *testing.T) {
consumerKeeper.SendPackets(ctx)
require.Equal(t, 3, len(consumerKeeper.GetPendingPackets(ctx).List))
}
func TestSlashPacketDataJSON(t *testing.T) {
spd := types.NewSlashPacketData(
abci.Validator{Address: bytes.HexBytes{}, Power: int64(1)},
uint64(1),
stakingtypes.Infraction_INFRACTION_DOWNTIME,
)
cpd := ccv.ConsumerPacketData{
Type: ccv.SlashPacket,
Data: &ccv.ConsumerPacketData_SlashPacketData{
SlashPacketData: spd,
},
}
bz := cpd.GetBytes()
str := string(bz)
fmt.Println(str)
}
2 changes: 1 addition & 1 deletion x/ccv/provider/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (am AppModule) OnRecvPacket(
sdk.NewEvent(
ccv.EventTypePacket,
sdk.NewAttribute(sdk.AttributeKeyModule, providertypes.ModuleName),
sdk.NewAttribute(ccv.AttributeKeyAckSuccess, fmt.Sprintf("%t", ack != nil)),
sdk.NewAttribute(ccv.AttributeKeyAckSuccess, "true"),
),
)
return ack
Expand Down
3 changes: 2 additions & 1 deletion x/ccv/provider/proposal_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ func TestProviderProposalHandler(t *testing.T) {
{
name: "unsupported proposal type",
// lint rule disabled because this is a test case for an unsupported proposal type
content: &distributiontypes.CommunityPoolSpendProposal{ // nolint:staticcheck
// nolint:staticcheck
content: &distributiontypes.CommunityPoolSpendProposal{
Title: "title",
Description: "desc",
Recipient: "",
Expand Down

0 comments on commit 9467103

Please sign in to comment.