Function origin

Source
pub fn origin() -> Address
Expand description

Returns the origin address (initator of the call stack). This is akin to the EVM ORIGIN opcode.

ยงErrors

  • If there is no address associated with the origin (e.g. because the origin is root).