diff --git a/Cargo. b/Cargo. new file mode 100644 index 0000000..e69de29 diff --git a/Cargo.lock b/Cargo.lock index af276bc..2a88e9c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1055,7 +1055,7 @@ dependencies = [ [[package]] name = "cw-it" version = "0.4.0-rc.1" -source = "git+https://github.com/apollodao/cw-it.git?branch=dev/astroport-native-lp-tokens#2559858567434c63cd71ca3c5a6821cb2b9c027b" +source = "git+https://github.com/apollodao/cw-it.git?rev=aa46a97c9fb7768842453a045a8eb44d381fc09b#aa46a97c9fb7768842453a045a8eb44d381fc09b" dependencies = [ "anyhow", "apollo-cw-multi-test", diff --git a/Cargo.toml b/Cargo.toml index df7abd4..06aaa72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ serde = { version = "1.0.145", default-features = false, features = ["derive"] } thiserror = { version = "1.0.31" } apollo-cw-asset = "0.1.1" osmosis-std = "0.22.0" -cw-it = { git = "https://github.com/apollodao/cw-it.git", branch = "dev/astroport-native-lp-tokens"} +cw-it = { git = "https://github.com/apollodao/cw-it.git", rev = "aa46a97c9fb7768842453a045a8eb44d381fc09b"} apollo-utils = "0.1.0" astroport = "2.9.0" astroport_v5 = { package = "astroport", version = "5.1.0" } diff --git a/cw-dex-astroport/tests/astroport_tests.rs b/cw-dex-astroport/tests/astroport_tests.rs index 1a562ea..b1c591e 100644 --- a/cw-dex-astroport/tests/astroport_tests.rs +++ b/cw-dex-astroport/tests/astroport_tests.rs @@ -1,6 +1,6 @@ mod tests { use apollo_cw_asset::{Asset, AssetInfo, AssetInfoBase, AssetList}; - use apollo_cw_multi_test::BasicAppBuilder; + use apollo_cw_multi_test::{AppBuilder, BasicAppBuilder}; use apollo_cw_multi_test::{ BankKeeper, DistributionKeeper, FailingModule, StakeKeeper, WasmKeeper, }; @@ -47,7 +47,8 @@ mod tests { // .with_api(MockApiBech32::new("osmo")) // .build(|_, _, _| {}); // BasicAppBuilder::construct(api, block, storage, bank, wasm, custom, staking, distribution, ibc, gov, stargate) - let app = BasicAppBuilder::construct( + // Construct the App using the AppBuilder + let app = AppBuilder::construct( MockApiBech32::new("osmo"), mock_env().block, MockStorage::new(), @@ -61,10 +62,13 @@ mod tests { stargate_keeper, ) .build(|_, _, _| {}); - let multi_test_runner = MultiTestRunner { + + // Instantiate MultiTestRunner with the constructed app + let multi_test_runner = MultiTestRunner:: { app, address_prefix: "osmo", }; + OwnedTestRunner::MultiTest(multi_test_runner) } #[cfg(feature = "osmosis-test-tube")]