Skip to content

Commit f953844

Browse files
committed
f: fixed test
1 parent c4877ff commit f953844

File tree

7 files changed

+21
-9
lines changed

7 files changed

+21
-9
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ injective-cosmwasm = { version = "0.3.0", path = "./packages/injective-cosmwas
2424
injective-math = { version = "0.3.0", path = "./packages/injective-math" }
2525
injective-std = { version = "1.14.0-rc1", path = "./packages/injective-std" }
2626
injective-std-derive = { version = "1.13.4", path = "./packages/injective-std-derive" }
27-
injective-test-tube = { version = "1.13.3" }
27+
injective-test-tube = { version = "1.14.0-rc1" }
2828
injective-testing = { version = "1.1.4", path = "./packages/injective-testing" }
2929
itertools = { version = "0.10.3" }
3030
primitive-types = { version = "0.12.2", default-features = false }

contracts/injective-cosmwasm-mock/src/testing/test_exchange.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ fn test_query_spot_market() {
166166
min_price_tick_size: dec_to_proto(min_price_tick_size),
167167
min_quantity_tick_size: dec_to_proto(min_quantity_tick_size),
168168
min_notional: dec_to_proto(min_notional),
169+
base_decimals: BASE_DECIMALS as u32,
170+
quote_decimals: QUOTE_DECIMALS as u32,
169171
},
170172
&env.signer,
171173
)

contracts/injective-cosmwasm-mock/src/testing/test_token_factory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ fn test_query_token_factory_denom_total_supply() {
2121
name: "Test".to_string(),
2222
symbol: "TST".to_string(),
2323
decimals: 6,
24+
allow_admin_burn: true,
2425
};
2526

2627
factory.create_denom(msg_create_denom, &env.owner).unwrap();

contracts/injective-cosmwasm-mock/src/utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ pub fn launch_spot_market(exchange: &Exchange<InjectiveTestApp>, signer: &Signin
328328
min_price_tick_size: dec_to_proto(FPDecimal::must_from_str("0.000000000000001")),
329329
min_quantity_tick_size: dec_to_proto(FPDecimal::must_from_str("1")),
330330
min_notional: dec_to_proto(FPDecimal::must_from_str("1")),
331+
base_decimals: BASE_DECIMALS as u32,
332+
quote_decimals: QUOTE_DECIMALS as u32,
331333
},
332334
signer,
333335
)

contracts/injective-cosmwasm-stargate-example/src/testing/test_bank.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ fn test_query_denom_metadata() {
5353
name: "CosmWasm".to_string(),
5454
symbol: "CW".to_string(),
5555
decimals: 6u32,
56+
allow_admin_burn: true,
5657
};
5758

5859
let denom = token_factory.create_denom(create_denom_msg, &env.users[0].account).unwrap();

packages/injective-testing/src/test_tube/exchange.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ pub fn launch_spot_market(exchange: &Exchange<InjectiveTestApp>, signer: &Signin
443443
min_price_tick_size: dec_to_proto(FPDecimal::must_from_str("0.000000000000001")),
444444
min_quantity_tick_size: dec_to_proto(FPDecimal::must_from_str("1000000000000000")),
445445
min_notional: dec_to_proto(FPDecimal::must_from_str("1")),
446+
base_decimals: MOCK_BASE_DECIMALS as u32,
447+
quote_decimals: MOCK_QUOTE_DECIMALS as u32,
446448
},
447449
signer,
448450
)
@@ -462,6 +464,8 @@ pub fn launch_spot_market_atom(exchange: &Exchange<InjectiveTestApp>, signer: &S
462464
min_price_tick_size: dec_to_proto(FPDecimal::must_from_str("0.000010000000000000")),
463465
min_quantity_tick_size: dec_to_proto(FPDecimal::must_from_str("100000")),
464466
min_notional: dec_to_proto(FPDecimal::must_from_str("1")),
467+
base_decimals: MOCK_BASE_DECIMALS as u32,
468+
quote_decimals: MOCK_QUOTE_DECIMALS as u32,
465469
},
466470
signer,
467471
)
@@ -489,6 +493,8 @@ pub fn launch_spot_market_custom(
489493
min_price_tick_size: dec_to_proto(FPDecimal::must_from_str(&min_price_tick_size)),
490494
min_quantity_tick_size: dec_to_proto(FPDecimal::must_from_str(&min_quantity_tick_size)),
491495
min_notional: dec_to_proto(FPDecimal::must_from_str("1")),
496+
base_decimals: MOCK_BASE_DECIMALS as u32,
497+
quote_decimals: MOCK_QUOTE_DECIMALS as u32,
492498
},
493499
signer,
494500
)

0 commit comments

Comments
 (0)