Fix gov denom typo (#333)

This commit is contained in:
Ruaridh 2020-01-24 11:39:09 +00:00 committed by GitHub
parent d018aaebcf
commit 33ad221e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,7 @@ func (k Keeper) GetDebtDenom(ctx sdk.Context) (denom string) {
// GetGovDenom returns the denom of debt in the system // GetGovDenom returns the denom of debt in the system
func (k Keeper) GetGovDenom(ctx sdk.Context) (denom string) { func (k Keeper) GetGovDenom(ctx sdk.Context) (denom string) {
store := prefix.NewStore(ctx.KVStore(k.key), types.DebtDenomKey) store := prefix.NewStore(ctx.KVStore(k.key), types.GovDenomKey)
bz := store.Get([]byte{}) bz := store.Get([]byte{})
k.cdc.MustUnmarshalBinaryLengthPrefixed(bz, &denom) k.cdc.MustUnmarshalBinaryLengthPrefixed(bz, &denom)
return return