@@ -14,7 +14,6 @@ import (
1414
1515 sdk "github.com/cosmos/cosmos-sdk/types"
1616
17- "github.com/CosmWasm/wasmd/x/wasm/keeper"
1817 "github.com/CosmWasm/wasmd/x/wasm/types"
1918)
2019
@@ -51,7 +50,7 @@ func (i IBCHandler) OnChanOpenInit(
5150 if err := ValidateChannelParams (channelID ); err != nil {
5251 return "" , err
5352 }
54- contractAddr , err := keeper .ContractFromPortID (portID )
53+ contractAddr , err := i . keeper .ContractFromPortID (portID )
5554 if err != nil {
5655 return "" , errorsmod .Wrapf (err , "contract port id" )
5756 }
@@ -103,7 +102,7 @@ func (i IBCHandler) OnChanOpenTry(
103102 return "" , err
104103 }
105104
106- contractAddr , err := keeper .ContractFromPortID (portID )
105+ contractAddr , err := i . keeper .ContractFromPortID (portID )
107106 if err != nil {
108107 return "" , errorsmod .Wrapf (err , "contract port id" )
109108 }
@@ -151,7 +150,7 @@ func (i IBCHandler) OnChanOpenAck(
151150 counterpartyChannelID string ,
152151 counterpartyVersion string ,
153152) error {
154- contractAddr , err := keeper .ContractFromPortID (portID )
153+ contractAddr , err := i . keeper .ContractFromPortID (portID )
155154 if err != nil {
156155 return errorsmod .Wrapf (err , "contract port id" )
157156 }
@@ -177,7 +176,7 @@ func (i IBCHandler) OnChanOpenAck(
177176
178177// OnChanOpenConfirm implements the IBCModule interface
179178func (i IBCHandler ) OnChanOpenConfirm (ctx sdk.Context , portID , channelID string ) error {
180- contractAddr , err := keeper .ContractFromPortID (portID )
179+ contractAddr , err := i . keeper .ContractFromPortID (portID )
181180 if err != nil {
182181 return errorsmod .Wrapf (err , "contract port id" )
183182 }
@@ -199,7 +198,7 @@ func (i IBCHandler) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string)
199198
200199// OnChanCloseInit implements the IBCModule interface
201200func (i IBCHandler ) OnChanCloseInit (ctx sdk.Context , portID , channelID string ) error {
202- contractAddr , err := keeper .ContractFromPortID (portID )
201+ contractAddr , err := i . keeper .ContractFromPortID (portID )
203202 if err != nil {
204203 return errorsmod .Wrapf (err , "contract port id" )
205204 }
@@ -227,7 +226,7 @@ func (i IBCHandler) OnChanCloseInit(ctx sdk.Context, portID, channelID string) e
227226// OnChanCloseConfirm implements the IBCModule interface
228227func (i IBCHandler ) OnChanCloseConfirm (ctx sdk.Context , portID , channelID string ) error {
229228 // counterparty has closed the channel
230- contractAddr , err := keeper .ContractFromPortID (portID )
229+ contractAddr , err := i . keeper .ContractFromPortID (portID )
231230 if err != nil {
232231 return errorsmod .Wrapf (err , "contract port id" )
233232 }
@@ -268,7 +267,7 @@ func (i IBCHandler) OnRecvPacket(
268267 packet channeltypes.Packet ,
269268 relayer sdk.AccAddress ,
270269) ibcexported.Acknowledgement {
271- contractAddr , err := keeper .ContractFromPortID (packet .DestinationPort )
270+ contractAddr , err := i . keeper .ContractFromPortID (packet .DestinationPort )
272271 if err != nil {
273272 // this must not happen as ports were registered before
274273 panic (errorsmod .Wrapf (err , "contract port id" ))
@@ -296,7 +295,7 @@ func (i IBCHandler) OnAcknowledgementPacket(
296295 acknowledgement []byte ,
297296 relayer sdk.AccAddress ,
298297) error {
299- contractAddr , err := keeper .ContractFromPortID (packet .SourcePort )
298+ contractAddr , err := i . keeper .ContractFromPortID (packet .SourcePort )
300299 if err != nil {
301300 return errorsmod .Wrapf (err , "contract port id" )
302301 }
@@ -314,7 +313,7 @@ func (i IBCHandler) OnAcknowledgementPacket(
314313
315314// OnTimeoutPacket implements the IBCModule interface
316315func (i IBCHandler ) OnTimeoutPacket (ctx sdk.Context , packet channeltypes.Packet , relayer sdk.AccAddress ) error {
317- contractAddr , err := keeper .ContractFromPortID (packet .SourcePort )
316+ contractAddr , err := i . keeper .ContractFromPortID (packet .SourcePort )
318317 if err != nil {
319318 return errorsmod .Wrapf (err , "contract port id" )
320319 }
0 commit comments