Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Cosmwasm-std 2.1 for Clone Testing #480

Merged
merged 14 commits into from
Sep 11, 2024
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,3 @@ log = "0.4.22"
# Interchain
ibc-relayer-types = { version = "0.29.2" }
ibc-chain-registry = { version = "0.29.2" }

[patch.crates-io]
cw-orch-core = { path = "packages/cw-orch-core" }
8 changes: 4 additions & 4 deletions packages/clone-testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ description = "Adapter for interacting with cw-multi-test via the cw-orchestrato
cosmwasm-std = { workspace = true }

# This package depends on published cw-orch version due to the clone-testing-cw-multi-test dependency
Kayanski marked this conversation as resolved.
Show resolved Hide resolved
cw-orch-core = { version = "2.0.0" }
cw-orch-mock = { version = "0.24.0" }
cw-orch-daemon = { version = "0.25.0" }
cw-orch-core = { path = "../cw-orch-core" }
Kayanski marked this conversation as resolved.
Show resolved Hide resolved
cw-orch-mock = { path = "../cw-orch-mock" }
cw-orch-daemon = { path = "../../cw-orch-daemon" }

# clone-cw-multi-test = { version = "0.6.0-alpha.1" }
clone-cw-multi-test = { git = "https://github.com/AbstractSDK/cw-multi-test-fork", branch = "clone-test/cosmwasm-2" }
Expand All @@ -40,5 +40,5 @@ cw20-base = { version = "2.0.0" }
env_logger = "0.10.0"
counter-contract = { path = "../../contracts-ws/contracts/counter" }
# This package depends on published cw-orch version due to the clone-testing-cw-multi-test dependency
Kayanski marked this conversation as resolved.
Show resolved Hide resolved
cw-orch = { version = "0.25", features = ["daemon"] }
cw-orch = { path = "../../cw-orch", features = ["daemon"] }
pretty_env_logger = "0.5.0"
12 changes: 11 additions & 1 deletion packages/clone-testing/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,17 @@ impl<S: StateInterface> CloneTesting<S> {
let state = Rc::new(RefCell::new(custom_state));

let pub_address_prefix = chain.network_info.pub_address_prefix.clone();
let remote_channel = RemoteChannel::new(rt, chain.clone()).unwrap();
let remote_channel = RemoteChannel::new(
rt,
&chain
.grpc_urls
.iter()
.map(|s| s.as_str())
.collect::<Vec<_>>(),
&chain.chain_id,
&chain.network_info.pub_address_prefix,
)
.unwrap();

let wasm = WasmKeeper::<Empty, Empty>::new()
.with_remote(remote_channel.clone())
Expand Down
Loading