parse_slot_value

Function parse_slot_value 

Source
fn parse_slot_value(value: &Lit) -> Result<U256>
Expand description

Parses a slot value from a literal.

Supports:

  • Integer literals: decimal (42) or hexadecimal (0x2a)
  • String literals: computes keccak256 hash of the string