Skip to content

Commit 8a7ad05

Browse files
committed
small clone-test tweaks to test migration
1 parent 75d2901 commit 8a7ad05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interchain/framework-clone-testing/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn setup(chain: ChainInfo) -> anyhow::Result<(Abstract<CloneTesting>, CloneT
1414
let abstr_deployment = Abstract::load_from(app.clone())?;
1515
let creator = app
1616
.wasm_querier()
17-
.code(abstr_deployment.registry.code_id()?)?
17+
.contract_info(&abstr_deployment.registry.address()?)?
1818
.creator;
1919
app.set_sender(creator.clone());
2020

interchain/framework-clone-testing/tests/migrate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn setup_migrate_allowed_direct_module_registration(
1515
) -> anyhow::Result<(Abstract<CloneTesting>, CloneTesting)> {
1616
let (deployment, chain) = common::setup(PION_1)?;
1717
deployment.migrate_if_version_changed()?;
18-
deployment.registry.update_config(None, Some(true))?;
18+
deployment.registry.update_config(None, Some(false))?;
1919
Ok((deployment, chain))
2020
}
2121

@@ -76,7 +76,7 @@ fn old_account_functions() -> anyhow::Result<()> {
7676
.registry
7777
.claim_namespace(old_account.id()?, "tester".to_owned())?;
7878
// Allow registration
79-
abstr_deployment.registry.update_config(None, Some(true))?;
79+
abstr_deployment.registry.update_config(None, Some(false))?;
8080
// Try to install
8181
let app = MockApp::new_test(chain.clone());
8282
MockApp::deploy(&app, APP_VERSION.parse().unwrap(), DeployStrategy::Try)?;

0 commit comments

Comments
 (0)