Skip to content

Commit

Permalink
try to fix the sub query
Browse files Browse the repository at this point in the history
  • Loading branch information
tsilva-figure committed Sep 14, 2023
1 parent 72b6df9 commit a51bbac
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ fn query_attributes(

#[cfg(test)]
pub mod tests {
use std::collections::HashMap;

use cosmwasm_std::testing::{mock_env, mock_info, MockApi, MockStorage, MOCK_CONTRACT_ADDR};
use cosmwasm_std::{coin, SubMsgResponse};
use cosmwasm_std::{Addr, OwnedDeps};
Expand Down
2 changes: 0 additions & 2 deletions src/instantiate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ pub fn instantiate(

#[cfg(test)]
mod tests {
use std::collections::HashMap;

use super::*;
use crate::mock::marker_msg;
use crate::mock::msg_at_index;
Expand Down
2 changes: 1 addition & 1 deletion src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ mod tests {
use cosmwasm_storage::{singleton, singleton_read};
use cw2::set_contract_version;
use provwasm_mocks::mock_dependencies;
use std::collections::{HashMap, HashSet};
use std::collections::HashSet;

#[test]
fn migration() {
Expand Down
4 changes: 2 additions & 2 deletions src/sub_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct SubState {
pub raise: Addr,
pub commitment_denom: String,
pub investment_denom: String,
pub capital_denom: String,
pub like_capital_denoms: Vec<String>,
pub capital_per_share: u64,
pub required_capital_attribute: Option<String>,
pub required_capital_attributes: Vec<CapitalDenomRequirement>,
}
6 changes: 2 additions & 4 deletions src/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ fn attributes(deps: Deps<ProvenanceQuery>, lp: &Addr) -> HashSet<String> {

#[cfg(test)]
mod tests {
use std::collections::HashMap;

use super::*;
use crate::contract::execute;
use crate::contract::tests::default_deps;
Expand Down Expand Up @@ -278,9 +276,9 @@ mod tests {
raise: Addr::unchecked("raise_1"),
commitment_denom: String::from("raise_1.commitment"),
investment_denom: String::from("raise_1.investment"),
capital_denom: String::from("stable_coin"),
like_capital_denoms: vec![String::from("stable_coin")],
capital_per_share: 1,
required_capital_attribute: None,
required_capital_attributes: vec![],
})
.unwrap(),
))
Expand Down

0 comments on commit a51bbac

Please sign in to comment.