@@ -25,7 +25,7 @@ func (k Keeper) IncentivizedPackets(goCtx context.Context, req *types.QueryIncen
25
25
26
26
var identifiedPackets []types.IdentifiedPacketFees
27
27
store := prefix .NewStore (ctx .KVStore (k .storeKey ), []byte (types .FeesInEscrowPrefix ))
28
- _ , err := query .Paginate (store , req .Pagination , func (key , value []byte ) error {
28
+ pagination , err := query .Paginate (store , req .Pagination , func (key , value []byte ) error {
29
29
packetID , err := types .ParseKeyFeesInEscrow (types .FeesInEscrowPrefix + string (key ))
30
30
if err != nil {
31
31
return err
@@ -41,6 +41,7 @@ func (k Keeper) IncentivizedPackets(goCtx context.Context, req *types.QueryIncen
41
41
42
42
return & types.QueryIncentivizedPacketsResponse {
43
43
IncentivizedPackets : identifiedPackets ,
44
+ Pagination : pagination ,
44
45
}, nil
45
46
}
46
47
@@ -75,7 +76,7 @@ func (k Keeper) IncentivizedPacketsForChannel(goCtx context.Context, req *types.
75
76
var packets []* types.IdentifiedPacketFees
76
77
keyPrefix := types .KeyFeesInEscrowChannelPrefix (req .PortId , req .ChannelId )
77
78
store := prefix .NewStore (ctx .KVStore (k .storeKey ), keyPrefix )
78
- _ , err := query .Paginate (store , req .Pagination , func (key , value []byte ) error {
79
+ pagination , err := query .Paginate (store , req .Pagination , func (key , value []byte ) error {
79
80
packetID , err := types .ParseKeyFeesInEscrow (string (keyPrefix ) + string (key ))
80
81
if err != nil {
81
82
return err
@@ -94,6 +95,7 @@ func (k Keeper) IncentivizedPacketsForChannel(goCtx context.Context, req *types.
94
95
95
96
return & types.QueryIncentivizedPacketsForChannelResponse {
96
97
IncentivizedPackets : packets ,
98
+ Pagination : pagination ,
97
99
}, nil
98
100
}
99
101
@@ -217,7 +219,7 @@ func (k Keeper) FeeEnabledChannels(goCtx context.Context, req *types.QueryFeeEna
217
219
218
220
var feeEnabledChannels []types.FeeEnabledChannel
219
221
store := prefix .NewStore (ctx .KVStore (k .storeKey ), []byte (types .FeeEnabledKeyPrefix ))
220
- _ , err := query .Paginate (store , req .Pagination , func (key , value []byte ) error {
222
+ pagination , err := query .Paginate (store , req .Pagination , func (key , value []byte ) error {
221
223
portID , channelID , err := types .ParseKeyFeeEnabled (types .FeeEnabledKeyPrefix + string (key ))
222
224
if err != nil {
223
225
return err
@@ -238,6 +240,7 @@ func (k Keeper) FeeEnabledChannels(goCtx context.Context, req *types.QueryFeeEna
238
240
239
241
return & types.QueryFeeEnabledChannelsResponse {
240
242
FeeEnabledChannels : feeEnabledChannels ,
243
+ Pagination : pagination ,
241
244
}, nil
242
245
}
243
246
0 commit comments