pub fn read_account_resource(&self, account: &Account) -> Option<AccountResource> {
        let ap = account.make_account_access_path();
        let data_blob = StateView::get(&self.data_store, &ap)
            .expect("account must exist in data store")
            .unwrap_or_else(|| panic!("Can't fetch account resource for {}", account.address()));
        lcs::from_bytes(data_blob.as_slice()).ok()
    }
/// Reads the resource [`Value`] for an account from this executor's data store.
Reads the resource [`Value`] for an account from this executor's data store.
Reads the resource [ ` Value ` ] for an account from this executor ' s data store .
pub fn read_account_resource(&self, account: &Account) -> Option<AccountResource> {
        let ap = account.make_account_access_path();
        let data_blob = StateView::get(&self.data_store, &ap)
            .expect("account must exist in data store")
            .unwrap_or_else(|| panic!("Can't fetch account resource for {}", account.address()));
        lcs::from_bytes(data_blob.as_slice()).ok()
    }
pub fn read_account_resource ( & self , account : & Account ) -> Option < AccountResource > { let ap = account . make_account_access_path ( ) ; let data_blob = StateView :: get ( & self . data_store , & ap ) . expect ( " " ) . unwrap_or_else ( | | panic ! ( " " account address ( ) ) ) ; lcs :: from_bytes ( data_blob . as_slice ( ) ) . ok ( ) }
Reads the resource [`Value`] for an account from this executor's data store.
Reads the resource [ ` Value ` ] for an account from this executor ' s data store .
&self
account
&Account
&self
account
&Account