Skip to content

Commit

Permalink
fix(profit): Missing owner assignment in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov authored and Gancho Manev committed May 17, 2023
1 parent bd134e0 commit fb30d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/profit/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ pub fn migrate(deps: DepsMut<'_>, _env: Env, msg: MigrateMsg) -> ContractResult<
}

let migration_closure = move |storage: &mut dyn Storage| {
SingleUserAccess::new_contract_owner(msg.owner).store(storage)?;

let old_config: Item<'_, OldConfig> = Item::new("profit_config");
let OldConfig {
cadence_hours,
Expand Down

0 comments on commit fb30d8a

Please sign in to comment.