Derive Macro stellar_axelar_std_derive::Ownable
source · #[derive(Ownable)]
Expand description
Implements the Ownable interface for a Soroban contract.
§Example
ⓘ
use stellar_axelar_std_derive::Ownable;
#[contract]
#[derive(Ownable)]
pub struct Contract;
#[contractimpl]
impl Contract {
pub fn __constructor(env: &Env, owner: Address) {
stellar_axelar_std::interfaces::set_owner(env, &owner);
}
}