Skip to content
Discussion options

You must be logged in to vote

cast storage

  • Use: Get the raw value of a contract's storage slot or its full storage layout. cast storage [options] address slot
  • Description: Get the raw value of a contract's storage slot. (Slot locations greater than 18446744073709551615 (u64::MAX) should be given as hex. Use cast index to compute mapping slots.) Emit the slot number to get the full storage layout (requires contract to be verified on Etherscan with a Solidity version > 0.6.5 or you must be in a Forge project with a local contract matching the deployed bytecode). The address (address) can be an ENS name or an address.

Source: Foundry Book

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jaimebarrancos
Comment options

@johnsonstephan
Comment options

Answer selected by jaimebarrancos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants