Function fadroma::admin::init

source ·
pub fn init(
deps: DepsMut<'_>,
address: Option<&str>,
info: &MessageInfo
) -> StdResult<CanonicalAddr>
Expand description

Initializes the admin module. Sets the messages sender as the admin if address is None. You must call this in your instantiate message.

Returns the admin address that was set.