Skip to content

Commit

Permalink
update and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaSripal committed Feb 10, 2025
1 parent 684fe73 commit b0e0aaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/apps/callbacks/v2/ibc_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (im IBCMiddleware) OnAcknowledgementPacket(
return nil
}

sdkCtx := sdk.UnwrapSDKContext(ctx) // TODO: https://github.com/cosmos/ibc-go/issues/5917
sdkCtx := sdk.UnwrapSDKContext(ctx)
cbData, err := types.GetCallbackData(
packetData, payload.GetVersion(), payload.GetSourcePort(),
sdkCtx.GasMeter().GasRemaining(), im.maxCallbackGas, types.SourceCallbackKey,
Expand Down Expand Up @@ -277,7 +277,7 @@ func (im IBCMiddleware) OnTimeoutPacket(
return err
}

sdkCtx := sdk.UnwrapSDKContext(ctx) // TODO: https://github.com/cosmos/ibc-go/issues/5917
sdkCtx := sdk.UnwrapSDKContext(ctx)
cbData, err := types.GetCallbackData(
packetData, payload.GetVersion(), payload.GetSourcePort(),
sdkCtx.GasMeter().GasRemaining(), im.maxCallbackGas, types.SourceCallbackKey,
Expand Down
2 changes: 1 addition & 1 deletion modules/apps/callbacks/v2/v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"

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

"github.com/cosmos/ibc-go/modules/apps/callbacks/testing/simapp"
"github.com/cosmos/ibc-go/modules/apps/callbacks/types"
Expand Down

0 comments on commit b0e0aaf

Please sign in to comment.