pub fn read_balance_resource(
        &self,
        account: &Account,
        balance_currency_code: Identifier,
    ) -> Option<BalanceResource> {
        let ap = account.make_balance_access_path(balance_currency_code);
        StateView::get(&self.data_store, &ap)
            .unwrap_or_else(|_| panic!("account {:?} must exist in data store", account.address()))
            .map(|data_blob| {
                lcs::from_bytes(data_blob.as_slice()).expect("Failure decoding balance resource")
            })
    }
/// Reads the balance resource value for an account from this executor's data store with the
/// given balance currency_code.
Reads the balance resource value for an account from this executor's data store with the
given balance currency_code.
Reads the balance resource value for an account from this executor ' s data store with the given balance currency_code .
pub fn read_balance_resource(
        &self,
        account: &Account,
        balance_currency_code: Identifier,
    ) -> Option<BalanceResource> {
        let ap = account.make_balance_access_path(balance_currency_code);
        StateView::get(&self.data_store, &ap)
            .unwrap_or_else(|_| panic!("account {:?} must exist in data store", account.address()))
            .map(|data_blob| {
                lcs::from_bytes(data_blob.as_slice()).expect("Failure decoding balance resource")
            })
    }
pub fn read_balance_resource ( & self , account : & Account , balance_currency_code : Identifier , ) -> Option < BalanceResource > { let ap = account . make_balance_access_path ( balance_currency_code ) ; StateView :: get ( & self . data_store , & ap ) . unwrap_or_else ( | _ | panic ! ( " " account address ( ) ) ) . map ( | data_blob | { lcs :: from_bytes ( data_blob . as_slice ( ) ) . expect ( " " ) } ) }
Reads the balance resource value for an account from this executor's data store with the
given balance currency_code.
Reads the balance resource value for an account from this executor ' s data store with the given balance currency_code .
&self
account
&Account
balance_currency_code
Identifier
&self
account
&Account
balance_currency_code
Identifier