cast index
NAME
cast-index - Compute the storage slot for an entry in a mapping.
SYNOPSIS
cast index key_type value_type key slot
DESCRIPTION
Compute the storage slot for an entry in a mapping.
OPTIONS
Common Options
-h
--help
Prints help information.
EXAMPLES
- Compute the storage slot of an entry (
hello) in a mapping of typemapping(string => uint256), located at slot 2:cast index string uint256 "hello" 2