Skip to content

Commit

Permalink
fix: manually set credit class fee (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo authored Oct 21, 2021
1 parent 7297783 commit e3d9c6a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### General

#### Fixed

* [#591](https://github.com/regen-network/regen-ledger/pull/591) Set credit class fee in upgrade handler

## [v2.0.0-beta1](https://github.com/regen-network/regen-ledger/releases/tag/v2.0.0-beta1) - 2021-08-19

### General
Expand Down
2 changes: 2 additions & 0 deletions app/experimental_appconfig.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build experimental
// +build experimental

// DONTCOVER

package app
Expand Down
3 changes: 3 additions & 0 deletions app/stable_appconfig.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !experimental
// +build !experimental

// DONTCOVER

package app
Expand Down Expand Up @@ -76,6 +78,7 @@ func (app *RegenApp) registerUpgradeHandlers() {

gen := ecocredittypes.DefaultGenesisState()
gen.Params.AllowlistEnabled = true
gen.Params.CreditClassFee = sdk.NewCoins(sdk.NewCoin("uregen", ecocredittypes.DefaultCreditClassFeeTokens))

modules := make(map[string]json.RawMessage)
modules[ecocredittypes.ModuleName] = app.cdc.MustMarshalJSON(gen)
Expand Down
1 change: 1 addition & 0 deletions app/testsuite/network_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build norace
// +build norace

package testsuite_test
Expand Down

0 comments on commit e3d9c6a

Please sign in to comment.