Skip to main content

find_storage_variable

Function find_storage_variable 

Source
fn find_storage_variable<'a>(
    storage_layout: &'a StorageLayout,
    variable_name: &str,
) -> Result<(&'a Storage, &'a StorageType)>
Expand description

Finds a variable by its label in storage_layout, returning its storage entry and type.

An exact match takes precedence, since Solidity names are case-sensitive; otherwise the label is matched case-insensitively.