Skip to content

Commit

Permalink
reverting test todo
Browse files Browse the repository at this point in the history
  • Loading branch information
ermvrs committed Dec 4, 2024
1 parent a7fabb2 commit a57cc03
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .snfoundry_cache/.prev_tests_failed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rosettacontracts_integrationtest::rosettanet_tests::rosettanet_redeploy_same_account
17 changes: 15 additions & 2 deletions tests/rosettanet_tests.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,25 @@ fn rosettanet_set_class() {
}

#[test]
fn rosettanet_check_precalculate_address() {
fn rosettanet_check_precalculated_address() {
let rosettanet = deploy_and_set_account();

let precalculated_address = rosettanet.precalculate_starknet_account(eth_account());

let deployed_account = rosettanet.deploy_account(eth_account());

assert_eq!(precalculated_address, deployed_account)
assert_eq!(precalculated_address, deployed_account);
}

#[test]
#[should_panic]
fn rosettanet_redeploy_same_account() {
let rosettanet = deploy_and_set_account();

let precalculated_address = rosettanet.precalculate_starknet_account(eth_account());

let deployed_account = rosettanet.deploy_account(eth_account());

assert_eq!(precalculated_address, deployed_account);
rosettanet.deploy_account(eth_account());
}

0 comments on commit a57cc03

Please sign in to comment.