pub fn whitelist_dapp(app: &mut App, owner: &Addr, treasury_instance: &Addr, dapp_instance: &Addr) {
    let msg = TreasuryMsg::ExecuteMsg::AddDApp {
        dapp: dapp_instance.to_string(),
    };
    let _res = app
        .execute_contract(owner.clone(), treasury_instance.clone(), &msg, &[])
        .unwrap();
    // Check if it was added
    let resp: TreasuryMsg::ConfigResponse = app
        .wrap()
        .query_wasm_smart(treasury_instance, &TreasuryMsg::QueryMsg::Config {})
        .unwrap();

    // Check config
    assert!(resp.dapps.contains(&dapp_instance.to_string()));
}
/// Whitelist a dapp on the treasury
Whitelist a dapp on the treasury
Whitelist a dapp on the treasury
pub fn whitelist_dapp(app: &mut App, owner: &Addr, treasury_instance: &Addr, dapp_instance: &Addr) {
    let msg = TreasuryMsg::ExecuteMsg::AddDApp {
        dapp: dapp_instance.to_string(),
    };
    let _res = app
        .execute_contract(owner.clone(), treasury_instance.clone(), &msg, &[])
        .unwrap();
    // Check if it was added
    let resp: TreasuryMsg::ConfigResponse = app
        .wrap()
        .query_wasm_smart(treasury_instance, &TreasuryMsg::QueryMsg::Config {})
        .unwrap();
    // Check config
    assert!(resp.dapps.contains(&dapp_instance.to_string()));
}
pub fn whitelist_dapp ( app : & mut App , owner : & Addr , treasury_instance : & Addr , dapp_instance : & Addr ) { let msg = TreasuryMsg :: ExecuteMsg :: AddDApp { dapp : dapp_instance . to_string ( ) , } ; let _res = app . execute_contract ( owner . clone ( ) , treasury_instance . clone ( ) , & msg , & [ ] ) . unwrap ( ) ; // Check if it was added let resp : TreasuryMsg :: ConfigResponse = app . wrap ( ) . query_wasm_smart ( treasury_instance , & TreasuryMsg :: QueryMsg :: Config { } ) . unwrap ( ) ; // Check config assert ! ( resp dapps contains ( dapp_instance to_string ( ) ) ) ; }
Whitelist a dapp on the treasury
Whitelist a dapp on the treasury
app
&mut App
owner
&Addr
treasury_instance
&Addr
dapp_instance
&Addr
app
&mut App
owner
&Addr
treasury_instance
&Addr
dapp_instance
&Addr