Otherwise, if the caller is a contract, returns false
.
For more information refer to the VM Instruction Set.
true
if the caller is external, false
otherwise.use std::auth::caller_is_external;
fn foo() {
if caller_is_external() {
log("Caller is external.")
} else {
log("Caller is a contract.")
}
}