Skip to content

Commit

Permalink
remove unused "instantiate"
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckram123 committed Nov 20, 2024
1 parent 7415af2 commit 1cab2a0
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions framework/packages/abstract-interface/src/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,45 +205,6 @@ impl<Chain: CwEnv> Abstract<Chain> {
}
}

pub fn instantiate(&mut self, admin: String) -> Result<(), AbstractInterfaceError> {
let admin = Addr::unchecked(admin);

self.ans_host.instantiate(
&abstract_std::ans_host::InstantiateMsg {
admin: admin.to_string(),
},
Some(&admin),
&[],
)?;

self.registry.instantiate(
&abstract_std::registry::InstantiateMsg {
admin: admin.to_string(),
#[cfg(feature = "integration")]
security_enabled: Some(false),
#[cfg(not(feature = "integration"))]
security_enabled: Some(true),
namespace_registration_fee: None,
},
Some(&admin),
&[],
)?;

self.module_factory.instantiate(
&abstract_std::module_factory::InstantiateMsg {
admin: admin.to_string(),
},
Some(&admin),
&[],
)?;

// We also instantiate ibc contracts
self.ibc.instantiate(&admin)?;
self.ibc.register(&self.registry)?;

Ok(())
}

pub fn contracts(&self) -> Vec<(&cw_orch::contract::Contract<Chain>, String)> {
vec![
(
Expand Down

0 comments on commit 1cab2a0

Please sign in to comment.