Skip to content

Commit

Permalink
Fix migration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayanski committed Dec 17, 2024
1 parent 746b971 commit d2573e9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions interchain/framework-clone-testing/src/common.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use abstract_interface::Abstract;
use abstract_interface::{Abstract, RegistryQueryFns};
use cw_orch::prelude::*;
use cw_orch_clone_testing::CloneTesting;

Expand All @@ -12,11 +12,9 @@ pub fn setup(chain: ChainInfo) -> anyhow::Result<(Abstract<CloneTesting>, 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))
}

0 comments on commit d2573e9

Please sign in to comment.