Skip to content

Commit

Permalink
fix: solve wrong addr length (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamer authored Apr 6, 2023
1 parent fcbd060 commit 61a1125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/service/keeper/fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (k Keeper) RefundEarnedFees(ctx sdk.Context) error {
defer iterator.Close()

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

var earnedFee sdk.Coin
k.cdc.MustUnmarshal(iterator.Value(), &earnedFee)
Expand Down

0 comments on commit 61a1125

Please sign in to comment.