0xPolygonMiden / compiler

Compiler from MidenIR to Miden Assembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switch from `fib` to basic account example in the source code for `cargo miden new` project

greenhat opened this issue · comments

After #146 is implemented and #182 merged.

See a WIT-based code for example in

impl Guest for Component {
fn receive_asset(asset: CoreAsset) {
add_asset(asset);
}
fn send_asset(asset: CoreAsset, tag: Tag, recipient: Recipient) {
let asset = remove_asset(asset);
create_note(asset, tag, recipient);
}
}