Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion notarization-move/sources/dynamic_notarization.move
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public fun create<D: store + drop + copy>(
transfer_lock: TimeLock,
clock: &Clock,
ctx: &mut TxContext,
) {
): object::ID {
// Use the core module to create and transfer the notarization
let notarization = new(
state,
Expand All @@ -68,6 +68,8 @@ public fun create<D: store + drop + copy>(
event::emit(DynamicNotarizationCreated { notarization_id: id });

notarization::transfer_notarization(notarization, tx_context::sender(ctx));

id
}

/// Transfer a dynamic notarization to a new owner
Expand Down
4 changes: 3 additions & 1 deletion notarization-move/sources/locked_notarization.move
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public fun create<D: store + drop + copy>(
delete_lock: TimeLock,
clock: &Clock,
ctx: &mut TxContext,
) {
): object::ID {
let notarization = new(
state,
immutable_description,
Expand All @@ -56,4 +56,6 @@ public fun create<D: store + drop + copy>(
event::emit(LockedNotarizationCreated { notarization_id: id });

notarization::transfer_notarization(notarization, tx_context::sender(ctx));

id
}