The cast selectors command is currently not supported in foundry-zksync. This command extracts function selectors and arguments from contract bytecode, providing a way to decode and understand the functions within a contract.
Feature Request:
Implement the cast selectors command to enable extracting function selectors and arguments from bytecode within the foundry-zksync environment.
Purpose of cast selectors:
The cast selectors command extracts and displays function selectors and their arguments from contract bytecode. This is useful for developers looking to analyze contract code, understand what functions are callable, and map function signatures to their selectors.
Key Features:
Extracts function selectors and arguments from contract bytecode.
Optionally resolves function signatures using external tools (e.g., OpenChain).
Supports analysis of deployed contracts and local bytecode.
Description:
The
cast selectors
command is currently not supported infoundry-zksync
. This command extracts function selectors and arguments from contract bytecode, providing a way to decode and understand the functions within a contract.Feature Request:
Implement the
cast selectors
command to enable extracting function selectors and arguments from bytecode within thefoundry-zksync
environment.Purpose of
cast selectors
:The
cast selectors
command extracts and displays function selectors and their arguments from contract bytecode. This is useful for developers looking to analyze contract code, understand what functions are callable, and map function signatures to their selectors.Key Features:
Common Options:
cast selectors --help
.Example Usage:
Extract selectors from WETH contract bytecode:
Resolve function signatures for extracted selectors:
References: