Function std::auth::caller_addresses
pub fn caller_addresses() -> Vec<Address> Expand description
Get the owners of the inputs (of type Input::Coin or Input::Message) to a
TransactionScript.
Additional Information
The returned Vec is not deduplicated, so it may contain repeated addresses.
Returns
- [Vec] - The addresses of the owners of the inputs.
Examples
use std::auth::caller_addresses;
fn foo(some_address: Address) {
let addresses = caller_addresses();
assert(addresses.get(0).unwrap() == some_address);
}