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