Skip to content

Commit

Permalink
fixed scarb fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
faytey committed Nov 2, 2023
1 parent d826c7a commit 39967c3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/adl/test_adl_utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,7 @@ fn given_normal_conditions_when_update_adl_state_then_works() {
start_prank(role_store.contract_address, caller_address);
role_store.grant_role(caller_address, role::MARKET_KEEPER);

let price = Price {
min: 1,
max: 200
};
let price = Price { min: 1, max: 200 };

stop_prank(role_store.contract_address);
data_store.set_market(market_token_address, 0, market);
Expand All @@ -279,12 +276,14 @@ fn given_normal_conditions_when_update_adl_state_then_works() {
oracle.set_primary_price(short_token_address, price);

let block_value = 1_u64;
let set_block = adl_utils::set_latest_adl_block(data_store, market_token_address, is_long, block_value);
let set_block = adl_utils::set_latest_adl_block(
data_store, market_token_address, is_long, block_value
);
let block_numbers = array![1_u64, 2_u64];
let updated = adl_utils::update_adl_state(
data_store, event_emitter, oracle, market_token_address, is_long, block_numbers.span()
);

teardown(data_store.contract_address);
// assert(adl_utils::get_latest_adl_block(data_store, market_token_address, is_long) == set_block, "No set block");
// assert(adl_utils::get_latest_adl_block(data_store, market_token_address, is_long) == set_block, "No set block");
}

0 comments on commit 39967c3

Please sign in to comment.