Skip to content

Commit

Permalink
oracle tests: use LegacyDisplayDenom
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Feb 8, 2024
1 parent 99f7f16 commit 8458588
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/params/app_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ func UmeeTokenMetadata() banktypes.Metadata {
"microumee", BaseExtraDenom,
},
}, {
Denom: LegacyDisplayDenom,
Denom: DisplayDenom,
Exponent: 6,
Aliases: []string{DisplayDenom},
Aliases: []string{LegacyDisplayDenom},
},
},

Check warning on line 71 in app/params/app_settings.go

View check run for this annotation

Codecov / codecov/patch

app/params/app_settings.go#L61-L71

Added lines #L61 - L71 were not covered by tests
}
Expand Down
2 changes: 1 addition & 1 deletion x/oracle/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (s *IntegrationTestSuite) TestQuerier_AggregatePrevotes() {
func (s *IntegrationTestSuite) TestQuerier_AggregateVote() {
var tuples types.ExchangeRateTuples
tuples = append(tuples, types.ExchangeRateTuple{
Denom: appparams.DisplayDenom,
Denom: appparams.LegacyDisplayDenom,
ExchangeRate: sdk.ZeroDec(),
})

Expand Down
2 changes: 1 addition & 1 deletion x/oracle/keeper/hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func (s *IntegrationTestSuite) TestHooks_AfterTokenRegistered() {
// require that an existing token does not change the accept list
h.AfterTokenRegistered(s.ctx, leveragetypes.Token{
BaseDenom: appparams.BondDenom,
SymbolDenom: appparams.DisplayDenom,
SymbolDenom: appparams.LegacyDisplayDenom,
Exponent: 6,
})
s.Require().Len(s.app.OracleKeeper.AcceptList(s.ctx), 1)
Expand Down
1 change: 0 additions & 1 deletion x/uibc/quota/intest/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
)

const (
displayDenom string = appparams.DisplayDenom
bondDenom string = appparams.BondDenom
initialPower = int64(10000000000)
)
Expand Down

0 comments on commit 8458588

Please sign in to comment.