fn init_actors(actors: Vec<ActorConfig>, app: &mut App) -> Result<(Vec<Actor>, Vec<Cw20Coin>)> {
        Ok(actors
            .into_iter()
            .map(|actor| -> Result<_> {
                let addr = Addr::unchecked(&actor.addr);
                app.execute(
                    Addr::unchecked(TEST_RESERVE),
                    BankMsg::Send {
                        to_address: actor.addr.to_owned(),
                        amount: coins(actor.btc, DENOM),
                    }
                    .into(),
                )
                .unwrap();

                let initial_cash = Cw20Coin {
                    address: addr.to_string(),
                    amount: Uint128::new(actor.cash),
                };

                Ok((
                    Actor {
                        addr,
                        whitelisted: actor.whitelisted,
                    },
                    initial_cash,
                ))
            })
            .collect::<Result<Vec<_>>>()?
            .into_iter()
            .unzip())
    }
/// Initializes actors
///
/// Sets initial btc balance, and returns:
/// * actors data for further processing
/// * data to be passed as initial cash balance
///
/// Actors data are pairs of:
/// * actor address
/// * flag if actor should be initiallt whitelisted
Initializes actors
Sets initial btc balance, and returns:
actors data for further processing
data to be passed as initial cash balance

Actors data are pairs of:
actor address
flag if actor should be initiallt whitelisted
Initializes actors Sets initial btc balance and returns : actors data for further processing data to be passed as initial cash balance Actors data are pairs of : actor address flag if actor should be initiallt whitelisted
fn init_actors(actors: Vec<ActorConfig>, app: &mut App) -> Result<(Vec<Actor>, Vec<Cw20Coin>)> {
        Ok(actors
            .into_iter()
            .map(|actor| -> Result<_> {
                let addr = Addr::unchecked(&actor.addr);
                app.execute(
                    Addr::unchecked(TEST_RESERVE),
                    BankMsg::Send {
                        to_address: actor.addr.to_owned(),
                        amount: coins(actor.btc, DENOM),
                    }
                    .into(),
                )
                .unwrap();
                let initial_cash = Cw20Coin {
                    address: addr.to_string(),
                    amount: Uint128::new(actor.cash),
                };
                Ok((
                    Actor {
                        addr,
                        whitelisted: actor.whitelisted,
                    },
                    initial_cash,
                ))
            })
            .collect::<Result<Vec<_>>>()?
            .into_iter()
            .unzip())
    }
fn init_actors ( actors : Vec < ActorConfig > , app : & mut App ) -> Result < ( Vec < Actor > , Vec < Cw20Coin > ) > { Ok ( actors . into_iter ( ) . map ( | actor | -> Result < _ > { let addr = Addr :: unchecked ( & actor . addr ) ; app . execute ( Addr :: unchecked ( TEST_RESERVE ) , BankMsg :: Send { to_address : actor . addr . to_owned ( ) , amount : coins ( actor . btc , DENOM ) , } . into ( ) , ) . unwrap ( ) ; let initial_cash = Cw20Coin { address : addr . to_string ( ) , amount : Uint128 :: new ( actor . cash ) , } ; Ok ( ( Actor { addr , whitelisted : actor . whitelisted , } , initial_cash , ) ) } ) . collect :: < Result < Vec < _ > > > ( ) ? . into_iter ( ) . unzip ( ) ) }
Initializes actors
Sets initial btc balance, and returns:
 actors data for further processing
 data to be passed as initial cash balance
Initializes actors Sets initial btc balance and returns : actors data for further processing data to be passed as initial cash balance
actors
Vec<ActorConfig>
app
&mut App
actors
Vec<ActorConfig>
app
&mut App