Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
add event to manager instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberHoward committed Mar 22, 2023
1 parent 056633c commit a4dae49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contracts/core/manager/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> ManagerResult {
set_contract_version(deps.storage, MANAGER, CONTRACT_VERSION)?;
migrate_module_data(deps.storage, MANAGER, CONTRACT_VERSION, None::<String>)?;
}
Ok(Response::default())
Ok(ManagerResponse::action("migrate"))
}

#[cfg_attr(feature = "export", cosmwasm_std::entry_point)]
Expand Down Expand Up @@ -88,7 +88,10 @@ pub fn instantiate(
ROOT.set(deps.branch(), Some(root))?;
STATUS.save(deps.storage, &true)?;
OS_FACTORY.set(deps, Some(info.sender))?;
Ok(Response::new())
Ok(ManagerResponse::new(
"instantiate",
vec![("os_id", msg.os_id.to_string()), ("owner", msg.root_user)],
))
}

#[cfg_attr(feature = "export", cosmwasm_std::entry_point)]
Expand Down

0 comments on commit a4dae49

Please sign in to comment.