Skip to content

Commit

Permalink
fix: fully qualify miden::account and miden::tx functions
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Oct 16, 2024
1 parent df2c574 commit 6530e0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions account/template/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ impl Account {
// externally (in this example)
#[no_mangle]
fn receive_asset(asset: CoreAsset) {
add_asset(asset);
miden::account::add_asset(asset);
}

#[no_mangle]
fn send_asset(asset: CoreAsset, tag: Tag, note_type: NoteType, recipient: Recipient) {
let asset = remove_asset(asset);
create_note(asset, tag, note_type, recipient);
let asset = miden::account::remove_asset(asset);
miden::tx::create_note(asset, tag, note_type, recipient);
}
}

0 comments on commit 6530e0e

Please sign in to comment.