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 canonical address of the admin that was set.