Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

load

Loads size felts from target contract's storage into an Array, starting at storage_address.

  • target - address of the contract, which storage you want to modify
  • storage_address - offset of the data in the contract's storage
  • size - how many felts will be loaded into the result Array

Fully qualified path: snforge_std::cheatcodes::storage::load

pub fn load(target: ContractAddress, storage_address: felt252, size: felt252) -> Array<felt252>