Skip to content

Commit

Permalink
fix: jolt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Darlington02 committed Oct 4, 2024
1 parent 4d80dca commit 195e539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_jolt.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ fn test_upgrade() {
let upgraded_class = declare("JoltUpgrade").unwrap().contract_class();
let new_class_hash = *upgraded_class.class_hash;

// set fee address
// upgrade
start_cheat_caller_address(jolt_contract_address, ADMIN.try_into().unwrap());
upgrade_dispatcher.upgrade(new_class_hash);
stop_cheat_caller_address(jolt_contract_address);
Expand All @@ -1228,7 +1228,7 @@ fn test_upgrade_fails_if_not_admin() {
let upgraded_class = declare("JoltUpgrade").unwrap().contract_class();
let new_class_hash = *upgraded_class.class_hash;

// set fee address
// try to upgrade
start_cheat_caller_address(jolt_contract_address, ADDRESS1.try_into().unwrap());
upgrade_dispatcher.upgrade(new_class_hash);
stop_cheat_caller_address(jolt_contract_address);
Expand Down

0 comments on commit 195e539

Please sign in to comment.