Skip to content

Commit 1817abc

Browse files
committed
fix: unit tests
1 parent 2198484 commit 1817abc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

x/tax/keeper/custom_tx_fee_checker_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
var (
14-
osmoDenom = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9y"
14+
osmoDenom = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9"
1515
osmoAxlUSDCDenom = "ibc/5DE4FCAF68AE40F81F738C857C0D95F7C1BC47B00FA1026E85C1DD92524D4A11"
1616
feeAmount = int64(1_000_000_000)
1717
)
@@ -83,7 +83,7 @@ func TestCustomTxFeeCheckerFailDueToHighGasPayingWithUSDC(t *testing.T) {
8383
ProfitAddress: types.DefaultProfitAddress,
8484
AcceptedDenomsMinPrices: []*types.DenomPrice{
8585
{
86-
Denom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9y",
86+
Denom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9",
8787
Ticker: "OSMO",
8888
MinPrice: "100.025",
8989
},
@@ -120,7 +120,7 @@ func TestCustomTxFeeCheckerFailDueToHighGasPayingWithOSMO(t *testing.T) {
120120
ProfitAddress: types.DefaultProfitAddress,
121121
AcceptedDenomsMinPrices: []*types.DenomPrice{
122122
{
123-
Denom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9y",
123+
Denom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9",
124124
Ticker: "OSMO",
125125
MinPrice: "100.025",
126126
},
@@ -143,7 +143,7 @@ func TestCustomTxFeeCheckerFailDueToHighGasPayingWithOSMO(t *testing.T) {
143143

144144
_, _, err := taxKeeper.CustomTxFeeChecker(ctx, feeTx)
145145
require.Error(t, err)
146-
require.Equal(t, "insufficient fees; got: 1ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9y required: 100025000ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9y: insufficient fee", err.Error())
146+
require.Equal(t, "insufficient fees; got: 1ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9 required: 100025000ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9: insufficient fee", err.Error())
147147
}
148148

149149
// Successfully pay fees in unls which represents NLS. Minimum gas prices set to unls.

x/tax/keeper/taxdecorator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func (suite *KeeperTestSuite) TestTaxDecorator() {
1717

1818
HUNDRED_DEC := sdkmath.LegacyNewDec(100)
1919
const rnDenom = "atom"
20-
const osmoAllowedDenom = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9y"
20+
const osmoAllowedDenom = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9"
2121
params, err := suite.app.TaxKeeper.GetParams(suite.ctx)
2222
suite.Require().NoError(err)
2323

0 commit comments

Comments
 (0)