diff --git a/contracts/voting/dao-voting-cosmos-staking/local-interchain/Cargo.toml b/contracts/voting/dao-voting-cosmos-staking/local-interchain/Cargo.toml index dfababcdd..6ed21d315 100644 --- a/contracts/voting/dao-voting-cosmos-staking/local-interchain/Cargo.toml +++ b/contracts/voting/dao-voting-cosmos-staking/local-interchain/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "interchaintest-e2e" +name = "ictest" version = "0.1.0" edition = "2021" @@ -10,4 +10,6 @@ localic-std = {git = "https://github.com/strangelove-ventures/interchaintest", b # localic-std = {path = "/home/reece/Desktop/Programming/Go/interchaintest/local-interchain/rust/localic-std"} # TODO: TEMP cosmwasm-std = "1.4.0" reqwest = { version = "0.11.20", features = ["blocking", "json"]} -serde_json = { version = "1.0.107" } \ No newline at end of file +serde_json = { version = "1.0.107" } + +[workspace] diff --git a/contracts/voting/dao-voting-cosmos-staking/local-interchain/src/main.rs b/contracts/voting/dao-voting-cosmos-staking/local-interchain/src/main.rs index 191feac6e..3521c9ff1 100644 --- a/contracts/voting/dao-voting-cosmos-staking/local-interchain/src/main.rs +++ b/contracts/voting/dao-voting-cosmos-staking/local-interchain/src/main.rs @@ -2,7 +2,6 @@ use localic_std::modules::cosmwasm::CosmWasm; use reqwest::blocking::Client; -use serde_json::json; use localic_std::polling::*; use localic_std::transactions::*; @@ -28,7 +27,7 @@ fn main() { fn test_cosmos_staking(rb: &ChainRequestBuilder) { let mut cw = CosmWasm::new(&rb); - let file_path = get_contract_path().join("dao-voting-cosmos-staking.wasm"); + let file_path = get_contract_path().join("dao_voting_token_staked.wasm"); let code_id = cw.store("acc0", &file_path); if code_id.is_err() { panic!("code_id error: {:?}", code_id); @@ -64,11 +63,15 @@ fn test_cosmos_staking(rb: &ChainRequestBuilder) { // println!("updated_res: {}", updated_res); } -fn parent_dir() -> std::path::PathBuf { - return std::env::current_dir().unwrap().parent().unwrap().to_path_buf(); +fn root_dir() -> std::path::PathBuf { + let mut parent = std::env::current_dir().unwrap().parent().unwrap().to_path_buf(); + parent = parent.parent().unwrap().to_path_buf(); + parent = parent.parent().unwrap().to_path_buf(); + parent = parent.parent().unwrap().to_path_buf(); + return parent; } // get_contract_path returns the artifacts dire from parent_dir fn get_contract_path() -> std::path::PathBuf { - parent_dir().join("artifacts") + root_dir().join("artifacts") } \ No newline at end of file