Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Apr 2, 2024
1 parent b68f635 commit dcaa22d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
38 changes: 19 additions & 19 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ import (
ibctestingtypes "github.com/cosmos/ibc-go/v6/testing/types"

packetforward "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/router"
packetforwardkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/router/keeper"
packetforwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/router/types"
packetforwardkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/router/keeper"
packetforwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/router/types"
)

var (
Expand Down Expand Up @@ -341,16 +341,16 @@ func New(
// Create Transfer Keepers
tokenFilterKeeper := tokenfilter.NewKeeper(app.IBCKeeper.ChannelKeeper)

app.PacketForwardKeeper = packetforwardkeeper.NewKeeper(
appCodec,
keys[packetforwardtypes.StoreKey],
app.GetSubspace(packetforwardtypes.ModuleName),
app.TransferKeeper, // will be zero-value here, reference is set later on with SetTransferKeeper.
app.IBCKeeper.ChannelKeeper,
app.DistrKeeper,
app.BankKeeper,
tokenFilterKeeper,
)
app.PacketForwardKeeper = packetforwardkeeper.NewKeeper(
appCodec,
keys[packetforwardtypes.StoreKey],
app.GetSubspace(packetforwardtypes.ModuleName),
app.TransferKeeper, // will be zero-value here, reference is set later on with SetTransferKeeper.
app.IBCKeeper.ChannelKeeper,
app.DistrKeeper,
app.BankKeeper,
tokenFilterKeeper,
)

app.TransferKeeper = ibctransferkeeper.NewKeeper(
appCodec, keys[ibctransfertypes.StoreKey], app.GetSubspace(ibctransfertypes.ModuleName),
Expand All @@ -364,12 +364,12 @@ func New(
transferStack = transfer.NewIBCModule(app.TransferKeeper)
transferStack = tokenfilter.NewIBCMiddleware(transferStack)
transferStack = packetforward.NewIBCMiddleware(
transferStack,
app.PacketForwardKeeper,
0, // retries on timeout
packetforwardkeeper.DefaultForwardTransferPacketTimeoutTimestamp, // forward timeout
packetforwardkeeper.DefaultRefundTransferPacketTimeoutTimestamp, // refund timeout
)
transferStack,
app.PacketForwardKeeper,
0, // retries on timeout
packetforwardkeeper.DefaultForwardTransferPacketTimeoutTimestamp, // forward timeout
packetforwardkeeper.DefaultRefundTransferPacketTimeoutTimestamp, // refund timeout
)

// Create evidence Keeper for to register the IBC light client misbehaviour evidence route
evidenceKeeper := evidencekeeper.NewKeeper(
Expand Down Expand Up @@ -493,7 +493,7 @@ func New(
},
{
Module: packetforward.NewAppModule(app.PacketForwardKeeper),
FromVersion: v2, ToVersion: v2,
FromVersion: v2, ToVersion: v2,
},
})
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions test/packetforward/packetforward_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package packetforward_test

import (
"encoding/json"
"strings"
"testing"
"time"
"strings"

"github.com/celestiaorg/celestia-app/app"
"github.com/celestiaorg/celestia-app/app/encoding"
Expand Down Expand Up @@ -91,7 +91,7 @@ func setupTestApp(t *testing.T, upgradeHeight int64) (*app.App, keyring.Keyring)
abciParams := &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxBytes: cp.Block.MaxBytes,
MaxGas: cp.Block.MaxGas,
MaxGas: cp.Block.MaxGas,test/packetforward/packetforward_upgrade_test.go

Check failure on line 94 in test/packetforward/packetforward_upgrade_test.go

View workflow job for this annotation

GitHub Actions / test / test

expected selector or type assertion, found 'go'

Check failure on line 94 in test/packetforward/packetforward_upgrade_test.go

View workflow job for this annotation

GitHub Actions / test / test-race

expected selector or type assertion, found 'go'

Check failure on line 94 in test/packetforward/packetforward_upgrade_test.go

View workflow job for this annotation

GitHub Actions / test / test-coverage

expected selector or type assertion, found 'go'

Check failure on line 94 in test/packetforward/packetforward_upgrade_test.go

View workflow job for this annotation

GitHub Actions / test / test-short

expected selector or type assertion, found 'go'
},
Evidence: &cp.Evidence,
Validator: &cp.Validator,
Expand Down

0 comments on commit dcaa22d

Please sign in to comment.