Skip to content

Commit

Permalink
add key check
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaru Wang committed May 10, 2023
1 parent 3988578 commit 398fe54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/globalfee/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ func (mfd FeeDecorator) getBondDenom(ctx sdk.Context) string {
}

var bondDenom string
mfd.StakingSubspace.Get(ctx, stakingtypes.KeyBondDenom, &bondDenom)
if mfd.StakingSubspace.Has(ctx, stakingtypes.KeyBondDenom) {
mfd.StakingSubspace.Get(ctx, stakingtypes.KeyBondDenom, &bondDenom)
}

return bondDenom
}
Expand Down

0 comments on commit 398fe54

Please sign in to comment.