Skip to content

Commit

Permalink
chore: fix broken tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbernal87 committed Jun 17, 2024
1 parent 9d2c6ea commit 01e5f5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ fn test_query_denom_metadata() {
let create_denom_msg = MsgCreateDenom {
sender: env.users[0].account.address().to_string(),
subdenom: "cw".to_string(),
name: "TEST_DENOM".to_string(),
symbol: "TDM".to_string(),
};

let denom = token_factory.create_denom(create_denom_msg, &env.users[0].account).unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ fn test_query_oracle_volatility() {
let base_info = Some(OracleInfo {
symbol: env.denoms["base"].to_owned(),
oracle_type: OracleType::PriceFeed as i32,
scale_factor: 6u32,
});

let quote_info = Some(OracleInfo {
symbol: env.denoms["quote"].to_owned(),
oracle_type: OracleType::PriceFeed as i32,
scale_factor: 6u32,
});

let oracle_history_options = Some(OracleHistoryOptions {
Expand Down
2 changes: 2 additions & 0 deletions contracts/injective-cosmwasm-stargate-example/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ pub fn add_spot_order_as(app: &InjectiveTestApp, market_id: String, trader: &Use
fee_recipient: trader.account.address(),
price,
quantity,
cid: "".to_string(),
}),
order_type: order_type.into(),
trigger_price: "".to_string(),
Expand Down Expand Up @@ -541,6 +542,7 @@ pub fn add_derivative_order_as(
fee_recipient: trader.address(),
price,
quantity,
cid: "".to_string(),
}),
margin,
order_type: order_type.into(),
Expand Down

0 comments on commit 01e5f5a

Please sign in to comment.