Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 Linting #1418

Merged
merged 120 commits into from Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
5d7da1c
update linters so we don't have deprecated linters, and fix linter er…
faddat May 23, 2022
47b665d
Merge branch 'main' into linter
faddat May 23, 2022
bf04920
Update CHANGELOG.md
faddat May 23, 2022
5501a2c
longer timeout
faddat May 23, 2022
adb6872
Merge branch 'main' into linter
faddat May 24, 2022
e80423a
Update golangci.yml
faddat May 24, 2022
8f2ff17
fumpt
faddat May 24, 2022
10838f9
Merge branch 'main' into linter
faddat May 24, 2022
5ef98e4
Merge branch 'main' into linter
faddat May 24, 2022
e80a1c8
Merge branch 'main' into linter
faddat May 26, 2022
2170acb
NewPacketId -> NewPacketID in keys_test.go
faddat May 26, 2022
ca3d343
Merge branch 'main' into linter
faddat Jun 2, 2022
3b0b1f2
update changelog per feedback
faddat Jun 2, 2022
23d559a
Merge branch 'main' into linter
faddat Jun 2, 2022
882e9f1
Update modules/apps/29-fee/ibc_middleware.go
faddat Jun 3, 2022
9261f37
Update modules/core/ante/ante.go
faddat Jun 3, 2022
e71e353
Merge branch 'main' into linter
faddat Jun 7, 2022
a950741
Revert "Update modules/apps/29-fee/ibc_middleware.go"
faddat Jun 7, 2022
f9519fa
add godoc linter
faddat Jun 7, 2022
5b0e597
add golint (deprecated) to check for godocs
faddat Jun 7, 2022
4e63e3e
alphebetize and add errcheck
faddat Jun 7, 2022
8a879b4
fumpt
faddat Jun 7, 2022
175e576
Added gofumpt linter
faddat Jun 7, 2022
858e71e
some error checks and one docs fix
faddat Jun 7, 2022
5157912
RedundancyDecorator
faddat Jun 7, 2022
0cb39b4
added errors, resolved an issue with RedundancyDecorator
faddat Jun 7, 2022
bd3fce6
resolve unnecessary line blank
faddat Jun 7, 2022
e4b9076
moved comment text inside else if
faddat Jun 7, 2022
f206324
update store
faddat Jun 7, 2022
72b9199
Update CHANGELOG.md
faddat Jun 7, 2022
b2a0824
Merge remote-tracking branch 'upstream/main' into linter
faddat Jun 22, 2022
4a973b8
newpacketID in ica test
faddat Jun 22, 2022
6829e91
gofumpt
faddat Jun 22, 2022
bda2873
assignOp: replace with
faddat Jun 22, 2022
eee47f1
Merge branch 'main' into linter
faddat Jun 27, 2022
02e3ce9
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jun 27, 2022
7c28fdb
merge main
faddat Jun 27, 2022
2ded56c
Merge branch 'main' into linter
faddat Jun 28, 2022
51b5cfc
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 2, 2022
6a4e2e7
lint keeper_test.go
faddat Jul 2, 2022
53a5ff5
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 2, 2022
d6ae552
Merge branch 'main' into linter
faddat Jul 5, 2022
ccf5754
Merge branch 'main' into linter
faddat Jul 5, 2022
cfa1f7d
fix error checking in client keeper
faddat Jul 5, 2022
54cb8d7
"works on my pc" ;).
faddat Jul 5, 2022
4a9f87c
use go1.18 for golangci-lint
faddat Jul 5, 2022
b125e45
Merge branch 'main' into linter
faddat Jul 7, 2022
5866dc8
Merge branch 'main' into linter
faddat Jul 9, 2022
f634228
fumpt
faddat Jul 9, 2022
ec587aa
Merge branch 'main' into linter
faddat Jul 12, 2022
9c4b820
Update modules/core/ante/ante.go
faddat Jul 14, 2022
efad5dc
Update testing/mock/ibc_app.go
faddat Jul 14, 2022
75d595d
Update modules/light-clients/07-tendermint/types/update.go
faddat Jul 14, 2022
0a1177b
Merge branch 'main' into linter
faddat Jul 14, 2022
ec8e88f
goimports
faddat Jul 14, 2022
02e1399
fumpt
faddat Jul 14, 2022
42c62d8
Update modules/core/02-client/abci.go
faddat Jul 14, 2022
bfb4cd1
goimports
faddat Jul 14, 2022
ea7dbba
Update golangci.yml
faddat Jul 14, 2022
4ea11e8
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 15, 2022
b3eb288
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 15, 2022
5f86b0d
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 15, 2022
adffa5b
fix newCosmosRelayer
faddat Jul 15, 2022
3aec211
try to fix abci codeql flagging
faddat Jul 15, 2022
bf9832a
Merge branch 'main' into linter
faddat Jul 16, 2022
1e1d59c
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 16, 2022
51d4e20
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 16, 2022
3dbed8c
Merge branch 'main' into linter
faddat Jul 19, 2022
cca4027
make ci same as main
faddat Jul 19, 2022
c290679
make format
faddat Jul 19, 2022
b34a460
make format
faddat Jul 19, 2022
ed8bac1
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 19, 2022
dfa1751
fmt and proto-gen
faddat Jul 19, 2022
2933f75
update linter settings
faddat Jul 19, 2022
f6899df
omit unnecessary type declaration ibctmtypes.Fraction
faddat Jul 19, 2022
4e8ec07
adjust golangci-lint timeout
faddat Jul 19, 2022
d14d530
use blank for SetUpgradedConsensusState
faddat Jul 19, 2022
5be7cfd
remove sdk_test.go
faddat Jul 20, 2022
2aaf670
Merge branch 'main' into linter
faddat Jul 21, 2022
5dffad9
Update modules/apps/29-fee/ibc_middleware.go
faddat Jul 21, 2022
980b3ff
Update CHANGELOG.md
faddat Jul 21, 2022
ac9e3cd
Update CHANGELOG.md
faddat Jul 21, 2022
8fd5b4e
Merge branch 'main' into linter
faddat Jul 21, 2022
b69d9f3
use declaration
faddat Jul 21, 2022
4b2e3a8
Update CHANGELOG.md
faddat Jul 21, 2022
fc15d16
remove unneded space
faddat Jul 21, 2022
61700a4
update changelog
faddat Jul 21, 2022
c2e5e86
gofumpt
faddat Jul 21, 2022
b1eee6f
fix spelling and trace.go
faddat Jul 21, 2022
c05fdae
Merge branch 'main' into linter
faddat Jul 21, 2022
e95c649
Merge branch 'main' into linter
faddat Jul 21, 2022
2e35554
Merge branch 'main' into linter
faddat Jul 22, 2022
46d6a66
we win
faddat Jul 22, 2022
9574847
Merge branch 'main' into linter
faddat Jul 23, 2022
56a4174
Merge branch 'main' into linter
faddat Jul 26, 2022
c92f6e6
Update mock.go
faddat Jul 26, 2022
e44018c
fumpt
faddat Jul 26, 2022
1d7f3a0
fumpt
faddat Jul 26, 2022
dbf4222
Merge branch 'main' into linter
faddat Jul 26, 2022
6fdc51e
Merge branch 'main' into linter
faddat Jul 26, 2022
19bce95
gofumpt -w -l -modpath github.com/cosmos/ibc-go/v4
faddat Jul 26, 2022
10a5515
write files
faddat Jul 26, 2022
9e60582
imports?
faddat Jul 26, 2022
bfe336b
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 26, 2022
efa7853
correct formatting of imports
faddat Jul 26, 2022
c022cb9
gofumpt
faddat Jul 26, 2022
2da8f35
fix metrics issue
faddat Jul 26, 2022
4b36cf6
add note about blank import of statik
faddat Jul 26, 2022
26cb0af
added note for blank import so we don't need nolint
faddat Jul 26, 2022
db496c2
e2e imports
faddat Jul 26, 2022
81cd7f0
give e2e a full module path
faddat Jul 26, 2022
75d4f77
use goimports
faddat Jul 26, 2022
e42313d
goimports
faddat Jul 26, 2022
144d5c7
Delete .gitpod.yml
faddat Jul 26, 2022
b204f86
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 27, 2022
9837d0b
update module paths
faddat Jul 27, 2022
5f7a2ac
linting
faddat Jul 27, 2022
1b1cf3a
update proto
vuong177 Jul 27, 2022
7b440bb
*.go
faddat Jul 27, 2022
da21b1a
Merge branch 'main' into linter
faddat Jul 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/golangci.yml
@@ -0,0 +1,46 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
faddat marked this conversation as resolved.
Show resolved Hide resolved
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.46.2

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
args: --timeout 5m

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true

# Optional: if set to true then the all caching functionality will be complete disabled,
# takes precedence over all other caching options.
# skip-cache: true

# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true
14 changes: 3 additions & 11 deletions .golangci.yml
@@ -1,7 +1,7 @@
run:
tests: false
# # timeout for analysis, e.g. 30s, 5m, default is 1m
# timeout: 5m
timeout: 5m

linters:
disable-all: true
Expand All @@ -10,25 +10,23 @@ linters:
- deadcode
- depguard
- dogsled
- exportloopref
# - errcheck
- goconst
- gocritic
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- maligned
- misspell
- nakedret
- prealloc
- scopelint
- staticcheck
- structcheck
- stylecheck
- revive
- typecheck
- unconvert
- unused
Expand All @@ -42,12 +40,6 @@ issues:
- text: "Use of weak random number generator"
linters:
- gosec
- text: "comment on exported var"
linters:
- golint
- text: "don't use an underscore in package name"
linters:
- golint
faddat marked this conversation as resolved.
Show resolved Hide resolved
- text: "ST1003:"
linters:
- stylecheck
Expand Down
7 changes: 5 additions & 2 deletions CHANGELOG.md
Expand Up @@ -41,7 +41,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
* [\#1300](https://github.com/cosmos/ibc-go/pull/1300) Bump SDK version to v0.45.4

### API Breaking

* (linting) [\#1418](https://github.com/cosmos/ibc-go/pull/1418) Fix linting errors, resulting compatiblity with go1.18 linting style, golangci-lint 1.46.2 and the revivie linter. This caused breaking changes in core/04-channel, core/ante, and the testing library.
* (core/04-channel) [\#1418](https://github.com/cosmos/ibc-go/pull/1418) NewPacketId has been renamed to NewPacketID to comply with go linting rules.
faddat marked this conversation as resolved.
Show resolved Hide resolved
* (core/ante) [\#1418](https://github.com/cosmos/ibc-go/pull/1418) AnteDecorator has been renamed to Decorator to comply with go linting rules.
* (testing) [\#1418](https://github.com/cosmos/ibc-go/pull/1418) MockIBCApp has been renamed to IBCApp and MockEmptyAcknowledgement has been renamed to EmptyAcknowledgement to comply with go linting rules
faddat marked this conversation as resolved.
Show resolved Hide resolved
* (transfer) [\#1250](https://github.com/cosmos/ibc-go/pull/1250) Deprecate `GetTransferAccount` since the `transfer` module account is never used.
* (channel) [\#1283](https://github.com/cosmos/ibc-go/pull/1283) The `OnChanOpenInit` application callback now returns a version string in line with the latest [spec changes](https://github.com/cosmos/ibc/pull/629).
* (modules/29-fee)[\#1338](https://github.com/cosmos/ibc-go/pull/1338) Renaming `Result` field in `IncentivizedAcknowledgement` to `AppAcknowledgement`.
Expand All @@ -55,7 +58,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (modules/core/keeper) [\#1284](https://github.com/cosmos/ibc-go/pull/1284) Add sanity check for the keepers passed into `ibckeeper.NewKeeper`. `ibckeeper.NewKeeper` now panics if any of the keepers passed in is empty.
* (middleware) [\#1022](https://github.com/cosmos/ibc-go/pull/1022) Add `GetAppVersion` to the ICS4Wrapper interface. This function should be used by IBC applications to obtain their own version since the version set in the channel structure may be wrapped many times by middleware.
* (modules/core/04-channel) [\#1160](https://github.com/cosmos/ibc-go/pull/1160) Improve `uint64 -> string` performance in `Logger`.
* (modules/core/04-channel) [\#1232](https://github.com/cosmos/ibc-go/pull/1232) Updating params on `NewPacketId` and moving to bottom of file.
* (modules/core/04-channel) [\#1232](https://github.com/cosmos/ibc-go/pull/1232) Updating params on `NewPacketID` and moving to bottom of file.
* (modules/core/04-channel) [\#1279](https://github.com/cosmos/ibc-go/pull/1279) Add selected channel version to MsgChanOpenInitResponse and MsgChanOpenTryResponse. Emit channel version during OpenInit/OpenTry
* (app/29-fee) [\#1305](https://github.com/cosmos/ibc-go/pull/1305) Change version string for fee module to `ics29-1`
* (app/29-fee) [\#1341](https://github.com/cosmos/ibc-go/pull/1341) Check if the fee module is locked and if the fee module is enabled before refunding all fees
Expand Down
2 changes: 1 addition & 1 deletion docs/migrations/v2-to-v3.md
Expand Up @@ -103,7 +103,7 @@ The migration code required may look like:
icaGenesisState := icatypes.NewGenesisState(controllerGenesisState, hostGenesisState)

// set new ics27 genesis state
appState[icatypes.ModuleName] = clientCtx.JSONCodec.MustMarshalJSON(icaGenesisState)
appState[icatypes.ModuleName] = clientCtx.Codec.MustMarshalJSON(icaGenesisState)
```

### Ante decorator
Expand Down
8 changes: 4 additions & 4 deletions modules/apps/29-fee/client/cli/query.go
Expand Up @@ -33,7 +33,7 @@ func GetCmdIncentivizedPacket() *cobra.Command {
return err
}

packetID := channeltypes.NewPacketId(portID, channelID, seq)
packetID := channeltypes.NewPacketID(portID, channelID, seq)

if err := packetID.Validate(); err != nil {
return err
Expand Down Expand Up @@ -121,7 +121,7 @@ func GetCmdTotalRecvFees() *cobra.Command {
return err
}

packetID := channeltypes.NewPacketId(portID, channelID, seq)
packetID := channeltypes.NewPacketID(portID, channelID, seq)

if err := packetID.Validate(); err != nil {
return err
Expand Down Expand Up @@ -167,7 +167,7 @@ func GetCmdTotalAckFees() *cobra.Command {
return err
}

packetID := channeltypes.NewPacketId(portID, channelID, seq)
packetID := channeltypes.NewPacketID(portID, channelID, seq)

if err := packetID.Validate(); err != nil {
return err
Expand Down Expand Up @@ -213,7 +213,7 @@ func GetCmdTotalTimeoutFees() *cobra.Command {
return err
}

packetID := channeltypes.NewPacketId(portID, channelID, seq)
packetID := channeltypes.NewPacketID(portID, channelID, seq)

if err := packetID.Validate(); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion modules/apps/29-fee/client/cli/tx.go
Expand Up @@ -45,7 +45,7 @@ func NewPayPacketFeeAsyncTxCmd() *cobra.Command {
return err
}

packetID := channeltypes.NewPacketId(args[0], args[1], seq)
packetID := channeltypes.NewPacketID(args[0], args[1], seq)

recvFeeStr, err := cmd.Flags().GetString(flagRecvFee)
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions modules/apps/29-fee/ibc_middleware.go
Expand Up @@ -226,7 +226,7 @@ func (im IBCMiddleware) OnRecvPacket(

// incase of async aknowledgement (ack == nil) store the relayer address for use later during async WriteAcknowledgement
if ack == nil {
im.keeper.SetRelayerAddressForAsyncAck(ctx, channeltypes.NewPacketId(packet.GetDestPort(), packet.GetDestChannel(), packet.GetSequence()), relayer.String())
im.keeper.SetRelayerAddressForAsyncAck(ctx, channeltypes.NewPacketID(packet.GetDestPort(), packet.GetDestChannel(), packet.GetSequence()), relayer.String())
return nil
}

Expand All @@ -248,7 +248,7 @@ func (im IBCMiddleware) OnAcknowledgementPacket(
return im.app.OnAcknowledgementPacket(ctx, packet, acknowledgement, relayer)
}

var ack = &types.IncentivizedAcknowledgement{}
ack := &types.IncentivizedAcknowledgement{}
faddat marked this conversation as resolved.
Show resolved Hide resolved
if err := types.ModuleCdc.UnmarshalJSON(acknowledgement, ack); err != nil {
return sdkerrors.Wrapf(err, "cannot unmarshal ICS-29 incentivized packet acknowledgement: %v", ack)
}
Expand All @@ -265,7 +265,7 @@ func (im IBCMiddleware) OnAcknowledgementPacket(
return im.app.OnAcknowledgementPacket(ctx, packet, ack.AppAcknowledgement, relayer)
}

packetID := channeltypes.NewPacketId(packet.SourcePort, packet.SourceChannel, packet.Sequence)
packetID := channeltypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)
feesInEscrow, found := im.keeper.GetFeesInEscrow(ctx, packetID)
if found {
im.keeper.DistributePacketFeesOnAcknowledgement(ctx, ack.ForwardRelayerAddress, relayer, feesInEscrow.PacketFees, packetID)
Expand All @@ -291,7 +291,7 @@ func (im IBCMiddleware) OnTimeoutPacket(
return im.app.OnTimeoutPacket(ctx, packet, relayer)
}

packetID := channeltypes.NewPacketId(packet.SourcePort, packet.SourceChannel, packet.Sequence)
packetID := channeltypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)
feesInEscrow, found := im.keeper.GetFeesInEscrow(ctx, packetID)
if found {
im.keeper.DistributePacketFeesOnTimeout(ctx, relayer, feesInEscrow.PacketFees, packetID)
Expand Down
22 changes: 11 additions & 11 deletions modules/apps/29-fee/ibc_middleware_test.go
Expand Up @@ -347,7 +347,7 @@ func (suite *FeeTestSuite) TestOnChanCloseInit() {
{
"RefundFeesOnChannelClosure fails - invalid refund address", func() {
// store the fee in state & update escrow account balance
packetID := channeltypes.NewPacketId(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, uint64(1))
packetID := channeltypes.NewPacketID(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, uint64(1))
packetFees := types.NewPacketFees([]types.PacketFee{types.NewPacketFee(fee, "invalid refund address", nil)})

suite.chainA.GetSimApp().IBCFeeKeeper.SetFeesInEscrow(suite.chainA.GetContext(), packetID, packetFees)
Expand Down Expand Up @@ -376,7 +376,7 @@ func (suite *FeeTestSuite) TestOnChanCloseInit() {
suite.SetupTest()
suite.coordinator.Setup(suite.path) // setup channel

packetID := channeltypes.NewPacketId(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, 1)
packetID := channeltypes.NewPacketID(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, 1)
fee = types.Fee{
RecvFee: defaultRecvFee,
AckFee: defaultAckFee,
Expand Down Expand Up @@ -436,7 +436,7 @@ func (suite *FeeTestSuite) TestOnChanCloseConfirm() {
{
"RefundChannelFeesOnClosure fails - refund address is invalid", func() {
// store the fee in state & update escrow account balance
packetID := channeltypes.NewPacketId(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, uint64(1))
packetID := channeltypes.NewPacketID(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, uint64(1))
packetFees := types.NewPacketFees([]types.PacketFee{types.NewPacketFee(fee, "invalid refund address", nil)})

suite.chainA.GetSimApp().IBCFeeKeeper.SetFeesInEscrow(suite.chainA.GetContext(), packetID, packetFees)
Expand Down Expand Up @@ -466,7 +466,7 @@ func (suite *FeeTestSuite) TestOnChanCloseConfirm() {
suite.SetupTest()
suite.coordinator.Setup(suite.path) // setup channel

packetID := channeltypes.NewPacketId(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, 1)
packetID := channeltypes.NewPacketID(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, 1)
fee = types.Fee{
RecvFee: defaultRecvFee,
AckFee: defaultAckFee,
Expand Down Expand Up @@ -589,7 +589,7 @@ func (suite *FeeTestSuite) TestOnRecvPacket() {

case tc.forwardRelayer && result == nil:
suite.Require().Equal(nil, result)
packetID := channeltypes.NewPacketId(packet.GetDestPort(), packet.GetDestChannel(), packet.GetSequence())
packetID := channeltypes.NewPacketID(packet.GetDestPort(), packet.GetDestChannel(), packet.GetSequence())

// retrieve the forward relayer that was stored in `onRecvPacket`
relayer, _ := suite.chainB.GetSimApp().IBCFeeKeeper.GetRelayerAddressForAsyncAck(suite.chainB.GetContext(), packetID)
Expand Down Expand Up @@ -635,7 +635,7 @@ func (suite *FeeTestSuite) TestOnAcknowledgementPacket() {
{
"no op success without a packet fee",
func() {
packetID := channeltypes.NewPacketId(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, suite.chainA.SenderAccount.GetSequence())
packetID := channeltypes.NewPacketID(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, suite.chainA.SenderAccount.GetSequence())
suite.chainA.GetSimApp().IBCFeeKeeper.DeleteFeesInEscrow(suite.chainA.GetContext(), packetID)

ack = types.IncentivizedAcknowledgement{
Expand Down Expand Up @@ -699,7 +699,7 @@ func (suite *FeeTestSuite) TestOnAcknowledgementPacket() {
{
"fail on no distribution by escrow account out of balance",
func() {
packetID := channeltypes.NewPacketId(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, suite.chainA.SenderAccount.GetSequence())
packetID := channeltypes.NewPacketID(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, suite.chainA.SenderAccount.GetSequence())
err := suite.chainA.GetSimApp().BankKeeper.SendCoinsFromModuleToAccount(suite.chainA.GetContext(), types.ModuleName, suite.chainA.SenderAccount.GetAddress(), smallAmount)
suite.Require().NoError(err)

Expand Down Expand Up @@ -735,7 +735,7 @@ func (suite *FeeTestSuite) TestOnAcknowledgementPacket() {
suite.Require().True(ok)

// escrow the packet fee
packetID := channeltypes.NewPacketId(packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence())
packetID := channeltypes.NewPacketID(packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence())
packetFee = types.NewPacketFee(
types.Fee{
RecvFee: defaultRecvFee,
Expand Down Expand Up @@ -839,7 +839,7 @@ func (suite *FeeTestSuite) TestOnTimeoutPacket() {
"no op if identified packet fee doesn't exist",
func() {
// delete packet fee
packetID := channeltypes.NewPacketId(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, suite.chainA.SenderAccount.GetSequence())
packetID := channeltypes.NewPacketID(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, suite.chainA.SenderAccount.GetSequence())
suite.chainA.GetSimApp().IBCFeeKeeper.DeleteFeesInEscrow(suite.chainA.GetContext(), packetID)

expectedBalance = originalBalance
Expand All @@ -861,7 +861,7 @@ func (suite *FeeTestSuite) TestOnTimeoutPacket() {
{
"fail on no distribution by escrow account out of balance",
func() {
packetID := channeltypes.NewPacketId(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, suite.chainA.SenderAccount.GetSequence())
packetID := channeltypes.NewPacketID(suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID, suite.chainA.SenderAccount.GetSequence())
err := suite.chainA.GetSimApp().BankKeeper.SendCoinsFromModuleToAccount(suite.chainA.GetContext(), types.ModuleName, suite.chainA.SenderAccount.GetAddress(), smallAmount)
suite.Require().NoError(err)

Expand Down Expand Up @@ -892,7 +892,7 @@ func (suite *FeeTestSuite) TestOnTimeoutPacket() {
cbs, ok := suite.chainA.App.GetIBCKeeper().Router.GetRoute(module)
suite.Require().True(ok)

packetID := channeltypes.NewPacketId(packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence())
packetID := channeltypes.NewPacketID(packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence())

// must be explicitly changed
relayerAddr = suite.chainB.SenderAccount.GetAddress()
Expand Down