diff --git a/scripts/src/tests/deploy/external.rs b/scripts/src/tests/deploy/external.rs index 8e77267fe..9e518e233 100644 --- a/scripts/src/tests/deploy/external.rs +++ b/scripts/src/tests/deploy/external.rs @@ -30,7 +30,7 @@ impl cw_orch::contract::Deploy for AdminFactorySuite fn deploy_on(chain: Chain, _data: Self::DeployData) -> Result { // ########### Upload ############## - let suite: AdminFactorySuite = AdminFactorySuite::store_on(chain.clone()).unwrap(); + let suite: AdminFactorySuite = AdminFactorySuite::store_on(chain.clone())?; suite.factory.instantiate( &cw_admin_factory::msg::InstantiateMsg { admin: None }, None, @@ -68,7 +68,7 @@ impl cw_orch::contract::Deploy for PayrollSuite { fn deploy_on(chain: Chain, _data: Self::DeployData) -> Result { // ########### Upload ############## - let suite: PayrollSuite = PayrollSuite::store_on(chain.clone()).unwrap(); + let suite: PayrollSuite = PayrollSuite::store_on(chain.clone())?; // ########### Instantiate ############## let _init = suite.payroll.instantiate( &cw_payroll_factory::msg::InstantiateMsg { @@ -111,7 +111,7 @@ impl cw_orch::contract::Deploy for TokenSwapSuite { fn deploy_on(chain: Chain, _data: Self::DeployData) -> Result { // ########### Upload ############## - let suite: TokenSwapSuite = TokenSwapSuite::store_on(chain.clone()).unwrap(); + let suite: TokenSwapSuite = TokenSwapSuite::store_on(chain.clone())?; Ok(suite) } } @@ -143,12 +143,13 @@ impl cw_orch::contract::Deploy for TokenFactorySuite fn deploy_on(chain: Chain, _data: Self::DeployData) -> Result { // ########### Upload ############## - let suite: TokenFactorySuite = TokenFactorySuite::store_on(chain.clone()).unwrap(); + let suite: TokenFactorySuite = TokenFactorySuite::store_on(chain.clone())?; // ########### Instantiate ############## - let init = TokenfactoryIssuerInit::NewToken { - subdenom: "DAOTOKEN".into(), - }; - suite.tokenfactory.instantiate(&init, None, None)?; + // let init = TokenfactoryIssuerInit::NewToken { + // subdenom: "DAOTOKEN".into(), + // }; + // suite.tokenfactory.instantiate(&init, None, None)?; + Ok(suite) } } @@ -180,7 +181,7 @@ impl cw_orch::contract::Deploy for VestingSuite { fn deploy_on(chain: Chain, _data: Self::DeployData) -> Result { // ########### Upload ############## - let suite: VestingSuite = VestingSuite::store_on(chain.clone()).unwrap(); + let suite: VestingSuite = VestingSuite::store_on(chain.clone())?; Ok(suite) } } @@ -212,7 +213,7 @@ impl cw_orch::contract::Deploy for Cw721RolesSuite { fn deploy_on(chain: Chain, _data: Self::DeployData) -> Result { // ########### Upload ############## - let suite: Cw721RolesSuite = Cw721RolesSuite::store_on(chain.clone()).unwrap(); + let suite: Cw721RolesSuite = Cw721RolesSuite::store_on(chain.clone())?; // ########### Instantiate ############## Ok(suite) } @@ -245,7 +246,7 @@ impl cw_orch::contract::Deploy for DaoMigrationSuite fn deploy_on(chain: Chain, _data: Self::DeployData) -> Result { // ########### Upload ############## - let suite: DaoMigrationSuite = DaoMigrationSuite::store_on(chain.clone()).unwrap(); + let suite: DaoMigrationSuite = DaoMigrationSuite::store_on(chain.clone())?; // ########### Instantiate ############## Ok(suite) @@ -279,8 +280,7 @@ impl cw_orch::contract::Deploy for FantokenFactorySuite Result { // ########### Upload ############## - let suite: FantokenFactorySuite = - FantokenFactorySuite::store_on(chain.clone()).unwrap(); + let suite: FantokenFactorySuite = FantokenFactorySuite::store_on(chain.clone())?; // ########### Instantiate ############## suite.factory.instantiate(&InstantiateMsg {}, None, None)?; Ok(suite)