pub const PACKAGE_OF_DIRECT_CALLER_VIRTUAL_BADGE: ResourceAddress;
Expand description

The non-fungible badge resource which is used for virtual proofs which represent the package of the immediate caller - ie the actor which made the latest (global or internal) call.

For example, if there is a global component A containing an internal component A2, and A2 makes a global call to B, then the access check for that global call will see a proof of this PACKAGE_OF_DIRECT_CALLER_VIRTUAL_BADGE for the package of A2.