@@ -14,7 +14,6 @@ import (
14
14
15
15
sdk "github.com/cosmos/cosmos-sdk/types"
16
16
17
- "github.com/CosmWasm/wasmd/x/wasm/keeper"
18
17
"github.com/CosmWasm/wasmd/x/wasm/types"
19
18
)
20
19
@@ -51,7 +50,7 @@ func (i IBCHandler) OnChanOpenInit(
51
50
if err := ValidateChannelParams (channelID ); err != nil {
52
51
return "" , err
53
52
}
54
- contractAddr , err := keeper .ContractFromPortID (portID )
53
+ contractAddr , err := i . keeper .ContractFromPortID (portID )
55
54
if err != nil {
56
55
return "" , errorsmod .Wrapf (err , "contract port id" )
57
56
}
@@ -103,7 +102,7 @@ func (i IBCHandler) OnChanOpenTry(
103
102
return "" , err
104
103
}
105
104
106
- contractAddr , err := keeper .ContractFromPortID (portID )
105
+ contractAddr , err := i . keeper .ContractFromPortID (portID )
107
106
if err != nil {
108
107
return "" , errorsmod .Wrapf (err , "contract port id" )
109
108
}
@@ -151,7 +150,7 @@ func (i IBCHandler) OnChanOpenAck(
151
150
counterpartyChannelID string ,
152
151
counterpartyVersion string ,
153
152
) error {
154
- contractAddr , err := keeper .ContractFromPortID (portID )
153
+ contractAddr , err := i . keeper .ContractFromPortID (portID )
155
154
if err != nil {
156
155
return errorsmod .Wrapf (err , "contract port id" )
157
156
}
@@ -177,7 +176,7 @@ func (i IBCHandler) OnChanOpenAck(
177
176
178
177
// OnChanOpenConfirm implements the IBCModule interface
179
178
func (i IBCHandler ) OnChanOpenConfirm (ctx sdk.Context , portID , channelID string ) error {
180
- contractAddr , err := keeper .ContractFromPortID (portID )
179
+ contractAddr , err := i . keeper .ContractFromPortID (portID )
181
180
if err != nil {
182
181
return errorsmod .Wrapf (err , "contract port id" )
183
182
}
@@ -199,7 +198,7 @@ func (i IBCHandler) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string)
199
198
200
199
// OnChanCloseInit implements the IBCModule interface
201
200
func (i IBCHandler ) OnChanCloseInit (ctx sdk.Context , portID , channelID string ) error {
202
- contractAddr , err := keeper .ContractFromPortID (portID )
201
+ contractAddr , err := i . keeper .ContractFromPortID (portID )
203
202
if err != nil {
204
203
return errorsmod .Wrapf (err , "contract port id" )
205
204
}
@@ -227,7 +226,7 @@ func (i IBCHandler) OnChanCloseInit(ctx sdk.Context, portID, channelID string) e
227
226
// OnChanCloseConfirm implements the IBCModule interface
228
227
func (i IBCHandler ) OnChanCloseConfirm (ctx sdk.Context , portID , channelID string ) error {
229
228
// counterparty has closed the channel
230
- contractAddr , err := keeper .ContractFromPortID (portID )
229
+ contractAddr , err := i . keeper .ContractFromPortID (portID )
231
230
if err != nil {
232
231
return errorsmod .Wrapf (err , "contract port id" )
233
232
}
@@ -268,7 +267,7 @@ func (i IBCHandler) OnRecvPacket(
268
267
packet channeltypes.Packet ,
269
268
relayer sdk.AccAddress ,
270
269
) ibcexported.Acknowledgement {
271
- contractAddr , err := keeper .ContractFromPortID (packet .DestinationPort )
270
+ contractAddr , err := i . keeper .ContractFromPortID (packet .DestinationPort )
272
271
if err != nil {
273
272
// this must not happen as ports were registered before
274
273
panic (errorsmod .Wrapf (err , "contract port id" ))
@@ -296,7 +295,7 @@ func (i IBCHandler) OnAcknowledgementPacket(
296
295
acknowledgement []byte ,
297
296
relayer sdk.AccAddress ,
298
297
) error {
299
- contractAddr , err := keeper .ContractFromPortID (packet .SourcePort )
298
+ contractAddr , err := i . keeper .ContractFromPortID (packet .SourcePort )
300
299
if err != nil {
301
300
return errorsmod .Wrapf (err , "contract port id" )
302
301
}
@@ -314,7 +313,7 @@ func (i IBCHandler) OnAcknowledgementPacket(
314
313
315
314
// OnTimeoutPacket implements the IBCModule interface
316
315
func (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 )
318
317
if err != nil {
319
318
return errorsmod .Wrapf (err , "contract port id" )
320
319
}
0 commit comments