Skip to content

Commit

Permalink
Fix broken unit tests and compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Mar 5, 2024
1 parent a62b45a commit a42def9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/cellarfees/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func (suite *KeeperTestSuite) TestImportingPopulatedGenesis() {
testGenesis.Params.PriceDecreaseBlockInterval = 10
testGenesis.Params.RewardEmissionPeriod = 600
testGenesis.Params.AuctionInterval = 1000
testGenesis.Params.AuctionThresholdUsdValue = sdk.NewDec(1000000)

require.NotPanics(func() {
suite.accountKeeper.EXPECT().GetModuleAccount(ctx, feesAccount.GetName()).Return(feesAccount)
Expand Down Expand Up @@ -66,6 +67,7 @@ func (suite *KeeperTestSuite) TestExportingPopulatedGenesis() {
params.PriceDecreaseBlockInterval = 10
params.RewardEmissionPeriod = 600
params.AuctionInterval = 1000
params.AuctionThresholdUsdValue = sdk.NewDec(1000000)
cellarfeesKeeper.SetParams(ctx, params)
peak := sdk.NewInt(1337)
cellarfeesKeeper.SetLastRewardSupplyPeak(ctx, peak)
Expand Down
10 changes: 10 additions & 0 deletions x/cellarfees/types/v1/params.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package v1

import "gopkg.in/yaml.v2"

// String implements the String interface
func (p Params) String() string {
out, _ := yaml.Marshal(p)
return string(out)
}

0 comments on commit a42def9

Please sign in to comment.