multiversx_sc_scenario/scenario/model/step/
check_state_step.rsuse crate::scenario::model::{AddressKey, CheckAccount, CheckAccounts};
#[derive(Debug, Default, Clone)]
pub struct CheckStateStep {
pub comment: Option<String>,
pub accounts: CheckAccounts,
}
impl CheckStateStep {
pub fn new() -> Self {
Self::default()
}
pub fn put_account<A>(mut self, address_expr: A, account: CheckAccount) -> Self
where
AddressKey: From<A>,
{
let address_key = AddressKey::from(address_expr);
self.accounts.accounts.insert(address_key, account);
self
}
}