Skip to content

Commit

Permalink
Address todos
Browse files Browse the repository at this point in the history
  • Loading branch information
wllmshao committed Feb 6, 2025
1 parent 2926b5f commit 6374d66
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/integration/changeover.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (suite *CCVTestSuite) TestRecycleTransferChannel() {
// Create transfer channel manually
distrTransferMsg := channeltypes.NewMsgChannelOpenInit(
transfertypes.PortID,
transfertypes.V1, // TODO(wllmshao): check if this is correct
transfertypes.V1,
channeltypes.UNORDERED,
[]string{suite.path.EndpointA.ConnectionID},
transfertypes.PortID,
Expand Down
1 change: 0 additions & 1 deletion tests/integration/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,6 @@ func (s *CCVTestSuite) TestIBCTransferMiddleware() {
s.Require().NoError(err)

// execute middleware OnRecvPacket logic
// TODO(wllmshao): check if this version string is ok
ack := cbs.OnRecvPacket(s.providerCtx(), transfertypes.V1, packet, sdk.AccAddress{})

// compute expected rewards with provider denom
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/consumer/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (am AppModule) OnChanOpenAck(

distrTransferMsg := channeltypes.NewMsgChannelOpenInit(
transfertypes.PortID,
transfertypes.V1, // TODO(wllmshao): check if this is correct
transfertypes.V1,
channeltypes.UNORDERED,
connHops,
transfertypes.PortID,
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/consumer/ibc_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func TestOnChanOpenAck(t *testing.T) {
// Expected msg
distrTransferMsg := channeltypes.NewMsgChannelOpenInit(
transfertypes.PortID,
transfertypes.V1, // TODO(wllmshao): check if this is correct
transfertypes.V1,
channeltypes.UNORDERED,
[]string{"connectionID"},
transfertypes.PortID,
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/consumer/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (k Keeper) InitGenesis(ctx sdk.Context, state *types.GenesisState) []abci.V
panic(err)
}

// TODO(wllmshao): this forces the client to be tendermint, unsure if this is ok
// this means the client must be tendermint
cid, err := k.clientKeeper.CreateClient(ctx, ibchost.Tendermint, clientStateBytes, consensusStateBytes)
if err != nil {
// If the client creation fails, the chain MUST NOT start
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/consumer_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (k Keeper) CreateConsumerClient(
return err
}

// TODO(wllmshao): this forces the client to be tendermint, unsure if this is ok
// this means the client must be tendermint
clientID, err := k.clientKeeper.CreateClient(ctx, ibchost.Tendermint, clientStateBytes, consensusStateBytes)
if err != nil {
return err
Expand Down

0 comments on commit 6374d66

Please sign in to comment.