Label an address
Give an address a readable label while testing named actors.
Solidity 0.8.36REPL mode
Why use this example
Use this pattern to shape local EVM state directly while keeping the setup and its visible effect in the same investigation. The entry isolates label an address so its input, result, and state changes stay easy to compare.
Solidity to run
address treasury = address(0xBEEF)
vm.label(treasury, "Treasury")
treasuryWhat to expect
The treasury address remains the returned Solidity value while the local VM records its readable label.
Continue the investigation
Change a value, add another expression, or open Inspect after the run. Accepted entries remain available to the next entry, and the clean replay keeps the complete result reproducible.
Read about VM helpers Execution diagnosis