Skip to content

Commit

Permalink
chore: add test for re-enable coinomics
Browse files Browse the repository at this point in the history
  • Loading branch information
kioqq committed Nov 23, 2023
1 parent ed42805 commit 9e61518
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions x/coinomics/keeper/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,20 @@ var _ = Describe("Coinomics", Ordered, func() {

totalSupplyAfterCommits = s.app.BankKeeper.GetSupply(s.ctx, denomMint)
Expect(maxSupply.Amount).To(Equal(totalSupplyAfterCommits.Amount))

// check: not mint if coinomics enables back
params := s.app.CoinomicsKeeper.GetParams(s.ctx)
params.EnableCoinomics = true

s.app.CoinomicsKeeper.SetParams(s.ctx, params)

s.Commit(10)

totalSupplyAfterCommits = s.app.BankKeeper.GetSupply(s.ctx, denomMint)
paramsAfterCommits = s.app.CoinomicsKeeper.GetParams(s.ctx)

Expect(maxSupply.Amount).To(Equal(totalSupplyAfterCommits.Amount))
Expect(paramsAfterCommits.EnableCoinomics).To(Equal(false))
})
})
})
Expand Down

0 comments on commit 9e61518

Please sign in to comment.