Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Jul 6, 2022
1 parent 5545572 commit 8822ef2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/distribution/migrations/v046/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, legacySubspace
return err
}

bz := cdc.MustMarshal(&currParams)
bz, err := cdc.Marshal(&currParams)
if err != nil {
return err
}

store.Set(ParamsKey, bz)

return nil
Expand Down

0 comments on commit 8822ef2

Please sign in to comment.