Skip to content

Commit 61a1125

Browse files
author
Dreamer
authored
fix: solve wrong addr length (#351)
1 parent fcbd060 commit 61a1125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/service/keeper/fees.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (k Keeper) RefundEarnedFees(ctx sdk.Context) error {
179179
defer iterator.Close()
180180

181181
for ; iterator.Valid(); iterator.Next() {
182-
provider := iterator.Key()[1:types.AddrLen]
182+
provider := iterator.Key()[1 : types.AddrLen+1]
183183

184184
var earnedFee sdk.Coin
185185
k.cdc.MustUnmarshal(iterator.Value(), &earnedFee)

0 commit comments

Comments
 (0)