Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed May 30, 2024
1 parent 67abac3 commit 369e9f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion modules/apps/transfer/ibc_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ func (suite *TransferTestSuite) TestPacketDataUnmarshalerInterface() {
{
Denom: types.Denom{
Base: ibctesting.TestCoin.Denom,
Trace: []types.Trace{types.Trace{}},
Trace: []types.Trace{{}},
},
Amount: ibctesting.TestCoin.Amount.String(),
},
Expand Down
10 changes: 6 additions & 4 deletions modules/apps/transfer/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ func (suite *KeeperTestSuite) TestQueryDenom() {
Trace: []types.Trace{
types.NewTrace("transfer", "channelToA"), //nolint:goconst
types.NewTrace("transfer", "channelToB"), //nolint:goconst
}}
},
}
suite.chainA.GetSimApp().TransferKeeper.SetDenom(suite.chainA.GetContext(), expDenom)

req = &types.QueryDenomRequest{
Expand All @@ -48,8 +49,8 @@ func (suite *KeeperTestSuite) TestQueryDenom() {
Trace: []types.Trace{
types.NewTrace("transfer", "channelToA"), //nolint:goconst
types.NewTrace("transfer", "channelToB"), //nolint:goconst
}}

},
}
suite.chainA.GetSimApp().TransferKeeper.SetDenom(suite.chainA.GetContext(), expDenom)

req = &types.QueryDenomRequest{
Expand All @@ -75,7 +76,8 @@ func (suite *KeeperTestSuite) TestQueryDenom() {
Trace: []types.Trace{
types.NewTrace("transfer", "channelToA"), //nolint:goconst
types.NewTrace("transfer", "channelToB"), //nolint:goconst
}}
},
}

req = &types.QueryDenomRequest{
Hash: expDenom.IBCDenom(),
Expand Down
10 changes: 1 addition & 9 deletions modules/apps/transfer/types/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,13 @@ import (
"testing"

"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
sdk "github.com/cosmos/cosmos-sdk/types"
)

const (
denom = "atom/pool"
amount = "100"
)

var (
sender = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()).String()
receiver = sdk.AccAddress("testaddr2").String()
)

func TestValidate(t *testing.T) {
testCases := []struct {
name string
Expand Down Expand Up @@ -137,7 +129,7 @@ func TestValidate(t *testing.T) {
Token{
Denom: Denom{
Base: "uatom",
Trace: []Trace{Trace{}},
Trace: []Trace{{}},
},
Amount: amount,
},
Expand Down

0 comments on commit 369e9f3

Please sign in to comment.