pub fn predicate_address() -> Address 
Expand description

Get the current predicate’s address when called in an internal context.

Returns

  • [Address] - The address of this predicate.

Reverts

  • When called outside of a predicate program.

Examples

use std::auth::predicate_address;

fn main() {
    let this_predicate = predicate_address();
    log(this_predicate);
}