pub trait Ownable {
// Required methods
fn get_owner(&self) -> AccountId;
fn set_owner(&mut self, owner: AccountId);
// Provided method
fn assert_owner(&self) { ... }
}
๐Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Required Methodsยง
fn get_owner(&self) -> AccountId
๐Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
fn set_owner(&mut self, owner: AccountId)
๐Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Provided Methodsยง
fn assert_owner(&self)
๐Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.