From d2573e964ba291fd63548ad096deabb4e3f57d49 Mon Sep 17 00:00:00 2001 From: Kayanski Date: Tue, 17 Dec 2024 14:34:34 +0100 Subject: [PATCH] Fix migration tests --- interchain/framework-clone-testing/src/common.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/interchain/framework-clone-testing/src/common.rs b/interchain/framework-clone-testing/src/common.rs index 45ea20f18..966393334 100644 --- a/interchain/framework-clone-testing/src/common.rs +++ b/interchain/framework-clone-testing/src/common.rs @@ -1,4 +1,4 @@ -use abstract_interface::Abstract; +use abstract_interface::{Abstract, RegistryQueryFns}; use cw_orch::prelude::*; use cw_orch_clone_testing::CloneTesting; @@ -12,11 +12,9 @@ pub fn setup(chain: ChainInfo) -> anyhow::Result<(Abstract, CloneT let mut app = CloneTesting::new(chain)?; let abstr_deployment = Abstract::load_from(app.clone())?; - let creator = app - .wasm_querier() - .contract_info(&abstr_deployment.registry.address()?)? - .creator; - app.set_sender(creator.clone()); + let owner = Addr::unchecked(abstr_deployment.registry.ownership()?.owner.unwrap()); - Ok((abstr_deployment.call_as(&creator), app)) + app.set_sender(owner.clone()); + + Ok((abstr_deployment.call_as(&owner), app)) }