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

store

Stores felts from serialized_value in target contract's storage, 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
  • serialized_value - a sequence of felts that will be inserted starting at storage_address

Fully qualified path: snforge_std::cheatcodes::storage::store

pub fn store(target: ContractAddress, storage_address: felt252, serialized_value: Span<felt252>)