Skip to content

Commit 7df25ab

Browse files
committed
update
1 parent 5870439 commit 7df25ab

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

contracts/ccip/ccip/tests/token_admin_registry_tests.move

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,14 @@ public fun test_register() {
494494
@0x0,
495495
);
496496

497-
let (_, _, _, _, _, type_proof, _, _) = registry::get_token_config_data(
497+
let (_, _, token_type, _, _, type_proof, _, _) = registry::get_token_config_data(
498498
&ref,
499499
local_token,
500500
);
501501
assert!(type_proof == type_name::into_string(type_name::with_defining_ids<TypeProof>()));
502+
assert!(
503+
token_type == ascii::string(b"0x5ef4b483da6644c84aa78eae4f51a9bfb1fb4554d5134ac98892e931fcbdd6bf::token_admin_registry_tests::TOKEN_ADMIN_REGISTRY_TESTS"),
504+
);
502505

503506
let ctx = scenario.ctx();
504507

@@ -529,10 +532,13 @@ public fun test_register() {
529532
TOKEN_ADMIN_ADDRESS_2,
530533
);
531534

532-
let (_, _, _, _, _, type_proof, _, _) = registry::get_token_config_data(
535+
let (_, _, token_type, _, _, type_proof, _, _) = registry::get_token_config_data(
533536
&ref,
534537
local_token,
535538
);
539+
assert!(
540+
token_type == ascii::string(b"0x5ef4b483da6644c84aa78eae4f51a9bfb1fb4554d5134ac98892e931fcbdd6bf::token_admin_registry_tests::TOKEN_ADMIN_REGISTRY_TESTS"),
541+
);
536542
// Since TypeProof and TypeProof2 have the same package ID, the type proof should remain as TypeProof
537543
assert!(type_proof == type_name::into_string(type_name::with_defining_ids<TypeProof>()));
538544

contracts/mcms/mcms/tests/mcms_test.move

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,11 @@ fun test_set_config__non_root_is_its_own_parent() {
822822
env.destroy();
823823
}
824824

825+
#[test]
826+
fun test_print_mcms_address() {
827+
std::debug::print(&@mcms);
828+
}
829+
825830
#[test]
826831
#[expected_failure(abort_code = mcms::EGroupTreeNotWellFormed, location = mcms)]
827832
fun test_set_config__group_parent_higher_index() {

0 commit comments

Comments
 (0)