Skip to content

Commit

Permalink
correct import
Browse files Browse the repository at this point in the history
  • Loading branch information
hard-nett authored and Jake Hartnell committed Aug 14, 2024
1 parent 65091bd commit f2570de
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion scripts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ cw-admin-factory = { git = "https://github.com/hard-nett/dao-contracts",
cw-tokenfactory-issuer = { git = "https://github.com/hard-nett/dao-contracts", branch = "feat/external-cw-orch" }
cw-vesting = { git = "https://github.com/hard-nett/dao-contracts", branch = "feat/external-cw-orch" }
cw721-roles = { git = "https://github.com/hard-nett/dao-contracts", branch = "feat/external-cw-orch" }
dao-migrator = { git = "https://github.com/hard-nett/dao-contracts", branch = "feat/external-cw-orch" }
dao-migrator = { git = "https://github.com/hard-nett/dao-contracts", branch = "feat/external-cw-orch" }
btsg-ft-factory = { git = "https://github.com/hard-nett/dao-contracts", branch = "feat/external-cw-orch" }
6 changes: 3 additions & 3 deletions scripts/src/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ pub struct FantokenFactorySuite<Chain> {
pub factory: DaoExternalFantokenFactory<Chain>,
}

impl<Chain: CwEnv> DaoExternalFantokenFactory<Chain> {
pub fn new(chain: Chain) -> DaoExternalFantokenFactory<Chain> {
DaoExternalFantokenFactory::<Chain> {
impl<Chain: CwEnv> FantokenFactorySuite<Chain> {
pub fn new(chain: Chain) -> FantokenFactorySuite<Chain> {
FantokenFactorySuite::<Chain> {
factory: DaoExternalFantokenFactory::new("btsg_ft_factory", chain.clone()),
}
}
Expand Down
5 changes: 4 additions & 1 deletion scripts/src/tests/deploy/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl<Chain: CwEnv> cw_orch::contract::Deploy<Chain> for DaoMigrationSuite<Chain>
}
}

// bitsong
// bitsong fantoken factory
impl<Chain: CwEnv> cw_orch::contract::Deploy<Chain> for FantokenFactorySuite<Chain> {
// We don't have a custom error type
type Error = CwOrchError;
Expand Down Expand Up @@ -281,6 +281,9 @@ impl<Chain: CwEnv> cw_orch::contract::Deploy<Chain> for FantokenFactorySuite<Cha
let suite: FantokenFactorySuite<Chain> =
FantokenFactorySuite::store_on(chain.clone()).unwrap();
// ########### Instantiate ##############
suite
.factory
.instantiate(&btsg_ft_factory::msg::InstantiateMsg {}, None, None)?;

Ok(suite)
}
Expand Down

0 comments on commit f2570de

Please sign in to comment.