Skip to content

Commit

Permalink
chore: bump apollo-cw-multi-test to 0.19.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo-sturdy committed Aug 16, 2024
1 parent a7ddbec commit 484adbc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 65 deletions.
7 changes: 4 additions & 3 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cw-it"
version = "0.4.0-rc.2"
version = "0.4.0-rc.3"
authors = ["Pacman <[email protected]>", "Sturdy <[email protected]>"]
edition = "2021"
license = "MPL-2.0"
Expand Down Expand Up @@ -112,7 +112,7 @@ apollo-utils = { version = "0.1.1", optional = true }
regex = { version = "1.7.3", optional = true }

# Cw-multi-test deps
apollo-cw-multi-test = { git = "https://github.com/apollodao/cw-multi-test.git", rev = "7e7bc2b91a8199c47815b45ef23b3ab07390ae3a",features = ["stargate"], optional = true }
apollo-cw-multi-test = { version = "0.19.0-rc.1", features = ["stargate"], optional = true }
bech32 = { version = "0.11.0", optional = true }
sha2 = { version = "0.10.8", optional = true }
paste = { version = "1.0.12", optional = true }
Expand Down
1 change: 0 additions & 1 deletion src/multi_test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ pub mod api;

pub use crate::create_contract_wrappers;
pub use runner::MultiTestRunner;
pub mod test_addresses;
12 changes: 5 additions & 7 deletions src/multi_test/runner.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use crate::multi_test::api::MockApiBech32;
use crate::multi_test::test_addresses::MockAddressGenerator;
use crate::{traits::CwItRunner, ContractType};
use anyhow::bail;
use apollo_cw_multi_test::BankKeeper;
use apollo_cw_multi_test::WasmKeeper;
use apollo_cw_multi_test::{BankSudo, BasicAppBuilder};
use apollo_cw_multi_test::{
BankKeeper, BankSudo, BasicAppBuilder, MockAddressGenerator, WasmKeeper,
};
use cosmrs::{crypto::secp256k1::SigningKey, proto::cosmos::base::abci::v1beta1::GasInfo};
use cosmwasm_std::{
coin, Addr, BankMsg, Binary, Coin, CosmosMsg, Empty, QueryRequest, StakingMsg, WasmMsg,
Expand Down Expand Up @@ -37,7 +36,7 @@ impl<'a> MultiTestRunner<'a> {
pub fn new(address_prefix: &'a str) -> Self {
// Construct app
let wasm_keeper: WasmKeeper<Empty, Empty> =
WasmKeeper::new().with_address_generator(MockAddressGenerator);
WasmKeeper::new_with_custom_address_generator(MockAddressGenerator);

let app = BasicAppBuilder::<Empty, Empty>::new()
.with_api(MockApiBech32::new(address_prefix))
Expand Down Expand Up @@ -483,7 +482,7 @@ mod tests {
assert_eq!(
wasm_event,
&Event::new("wasm")
.add_attribute("_contract_address", contract_addr)
.add_attribute("_contract_addr", contract_addr)
.add_attribute("action", "mint")
.add_attribute("to", alice.address())
.add_attribute("amount", "100")
Expand Down Expand Up @@ -673,4 +672,3 @@ mod tests {
assert_eq!(app.app.block_info().time.seconds(), time.seconds() + 69);
}
}

52 changes: 0 additions & 52 deletions src/multi_test/test_addresses.rs

This file was deleted.

0 comments on commit 484adbc

Please sign in to comment.