@@ -30,7 +30,7 @@ public fun test_create_dynamic_notarization_with_string_data() {
3030 state,
3131 std::option ::some (string::utf8 (b"Test Description ")),
3232 std::option ::some (string::utf8 (b"Test Updatable Metadata ")),
33- std:: option ::none (),
33+ timelock ::none (),
3434 &clock,
3535 ctx,
3636 );
@@ -84,7 +84,7 @@ public fun test_create_dynamic_notarization_with_vector_data() {
8484 state,
8585 std::option ::some (string::utf8 (b"Test Description ")),
8686 std::option ::some (string::utf8 (b"Test Updatable Metadata ")),
87- std:: option ::none (),
87+ timelock ::none (),
8888 &clock,
8989 ctx,
9090 );
@@ -139,7 +139,7 @@ public fun test_create_dynamic_notarization_with_transfer_lock() {
139139 state,
140140 std::option ::some (string::utf8 (b"Test Description ")),
141141 std::option ::some (string::utf8 (b"Test Updatable Metadata ")),
142- std:: option :: some ( transfer_lock) ,
142+ transfer_lock,
143143 &clock,
144144 ctx,
145145 );
@@ -183,7 +183,7 @@ public fun test_transfer_dynamic_notarization() {
183183 state,
184184 std::option ::none (),
185185 std::option ::none (),
186- std:: option ::none (),
186+ timelock ::none (),
187187 &clock,
188188 scenario.ctx (),
189189 );
@@ -242,7 +242,7 @@ public fun test_transfer_locked_dynamic_notarization() {
242242 state,
243243 std::option ::none (),
244244 std::option ::none (),
245- std:: option :: some ( transfer_lock) ,
245+ transfer_lock,
246246 &clock,
247247 scenario.ctx (),
248248 );
@@ -285,7 +285,7 @@ public fun test_update_dynamic_notarization() {
285285 state,
286286 std::option ::none (),
287287 std::option ::none (),
288- std:: option ::none (),
288+ timelock ::none (),
289289 &clock,
290290 ctx,
291291 );
@@ -344,7 +344,7 @@ public fun test_dynamic_notarization_with_until_destroyed_lock() {
344344 state,
345345 std::option ::none (),
346346 std::option ::none (),
347- std:: option :: some ( transfer_lock) ,
347+ transfer_lock,
348348 &clock,
349349 ctx,
350350 );
@@ -368,7 +368,7 @@ public fun test_dynamic_notarization_with_until_destroyed_lock() {
368368 scenario.end ();
369369}
370370
371- #[test, expected_failure(abort_code = notarization::EDynamicNotarizationInvariants) ]
371+ #[test]
372372public fun test_dynamic_notarization_with_none_lock () {
373373 let mut scenario = ts::begin (ADMIN_ADDRESS );
374374 let ctx = scenario.ctx ();
@@ -388,7 +388,7 @@ public fun test_dynamic_notarization_with_none_lock() {
388388 state,
389389 std::option ::none (),
390390 std::option ::none (),
391- std:: option :: some ( transfer_lock) ,
391+ transfer_lock,
392392 &clock,
393393 ctx,
394394 );
@@ -400,6 +400,7 @@ public fun test_dynamic_notarization_with_none_lock() {
400400
401401 // Verify it's transferable (has none transfer lock)
402402 assert ! (dynamic_notarization::is_transferable (¬arization, &clock), 0 );
403+ assert ! (notarization.lock_metadata ().is_none (), 0 );
403404
404405 // Clean up
405406 notarization::destroy (notarization, &clock);
0 commit comments