Skip to content

Commit

Permalink
Check for RAMM and admin cap deletion in test
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbmb committed Apr 22, 2024
1 parent 1443099 commit 392d3a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ramm-sui/tests/ramm_tests.move
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module ramm_sui::ramm_tests {
const ERAMMCreation: u64 = 0;
const ERAMMAssetAddition: u64 = 1;
const ERAMMDepositStatus: u64 = 3;
const ERAMMFailedDeletion: u64 = 4;

#[test]
/// Basic flow test:
Expand Down Expand Up @@ -773,6 +774,9 @@ module ramm_sui::ramm_tests {
let usdt = test_scenario::take_from_address<Coin<USDT>>(scenario, ADMIN);
test_utils::assert_eq(coin::value(&usdt), (400_000 * (test_util::usdt_factor() as u64)));

assert!(!test_scenario::has_most_recent_shared<RAMM>(), ERAMMFailedDeletion);
assert!(!test_scenario::has_most_recent_for_address<RAMMAdminCap>(ADMIN), ERAMMFailedDeletion);

test_scenario::return_to_address(ADMIN, eth);
test_scenario::return_to_address(ADMIN, matic);
test_scenario::return_to_address(ADMIN, usdt);
Expand Down

0 comments on commit 392d3a3

Please sign in to comment.