Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Corelib
Map
pub trait StorageMapReadAccess
use starknet::ContractAddress; use starknet::storage::{Map, StorageMapReadAccess, StoragePathEntry}; #[storage] struct Storage { balances: Map, allowances: Map>, } fn read_storage(self: @ContractState, address: ContractAddress) { // Read from single mapping let balance = self.balances.read(address); // Read from nested mapping let allowance = self.allowances.entry(owner).read(spender); }
fn read(self: TMemberState, key: Self::Key) -> StorageMapReadAccessValue
type Key;
type Value;
Was this page helpful?