Skip to content

Commit

Permalink
Use start_cheat_caller_address for extra_deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
CBoYXD committed Jan 1, 2025
1 parent 643cc20 commit 882620a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_loop.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,12 @@ fn test_repay_vaults_in_close_position(){
},
pool_key, limits, pool_price
);
stop_cheat_account_contract_address(deposit_disp.contract_address);

start_cheat_caller_address(deposit_disp.contract_address, user);
deposit_disp.extra_deposit(strk_addr, amount);
deposit_disp.extra_deposit(eth_addr, amount);

stop_cheat_account_contract_address(deposit_disp.contract_address);
stop_cheat_caller_address(deposit_disp.contract_address);

start_cheat_account_contract_address(deposit_disp.contract_address, user);
start_cheat_block_timestamp(
Expand Down

0 comments on commit 882620a

Please sign in to comment.