matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment
Apache License 2.0
299 stars 130 forks source link

Support for `cast selectors` Command #628

Open dutterbutter opened 3 weeks ago

dutterbutter commented 3 weeks ago

Description:

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:

Common Options:


Example Usage:


References: