Function program_id

Source
pub fn program_id() -> ActorId
Expand description

Return the identifier of the current program.

ยงExamples

use gcore::exec;

#[unsafe(no_mangle)]
extern "C" fn handle() {
    let whoami = exec::program_id();
}