Skip to content

Commit

Permalink
linting is the most important part of programming
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Jul 18, 2023
1 parent 2486517 commit 86e1884
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions x/ccv/types/ccv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"strings"
"testing"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/stretchr/testify/require"

cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

abci "github.com/cometbft/cometbft/abci/types"

"github.com/cosmos/interchain-security/v3/testutil/crypto"
"github.com/cosmos/interchain-security/v3/x/ccv/types"
)
Expand Down Expand Up @@ -99,7 +100,6 @@ func TestMarshalPacketData(t *testing.T) {
// TestVSCPacketDataWireBytes is a regression test that the JSON schema
// for ValidatorSetChangePacketData (sent over the wire) does not change.
func TestVSCPacketDataWireBytes(t *testing.T) {

cId1 := crypto.NewCryptoIdentityFromIntSeed(4732894)
cId2 := crypto.NewCryptoIdentityFromIntSeed(4732895)

Expand Down Expand Up @@ -152,12 +152,13 @@ func TestVSCPacketDataWireBytes(t *testing.T) {
// TestSlashPacketDataWireBytes is a regression test that the JSON schema
// for SlashPacketData (sent over the wire) does not change.
func TestSlashPacketDataWireBytes(t *testing.T) {

// Construct consumer packet data wrapping slash packet data
cId := crypto.NewCryptoIdentityFromIntSeed(4732894342)
slashPacketData := types.NewSlashPacketData(
abci.Validator{Address: cId.SDKValConsAddress(),
Power: int64(4328)},
abci.Validator{
Address: cId.SDKValConsAddress(),
Power: int64(4328),
},
uint64(894732),
stakingtypes.Infraction_INFRACTION_DOUBLE_SIGN,
)
Expand Down Expand Up @@ -197,7 +198,6 @@ func TestSlashPacketDataWireBytes(t *testing.T) {
// TestVSCMaturedPacketDataWireBytes is a regression test that the JSON schema
// for VSCMaturedPacketData (sent over the wire) does not change.
func TestVSCMaturedPacketDataWireBytes(t *testing.T) {

// Construct consumer packet data wrapping vsc matured packet data
cpd := types.ConsumerPacketData{
Type: types.VscMaturedPacket,
Expand Down

0 comments on commit 86e1884

Please sign in to comment.