-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add table layout for forge inspect <contract> abi
#5165
Comments
|
yea, that --pretty with storage looks cool! If you could do the same with ABI, it would be aawesome! Thanks! |
forge inspect <contract> abi
we have the forge inspect Counter abi --pretty
interface Counter {
function getCounter() external view returns (uint256);
function setCounter(uint256 count) external;
} It's a little bit inconsistent and also json is default instead using the |
I tend to agree JSON is the default here because you are effectively just extracting fields from a JSON artifact I think we should change it so that This is in line with
|
I guess it will be very useful to add a forge command to see all available functions in the contract as well as inherited in it.
For example, with a "forge functions -contract MyContract" user will get a table in the respond like:
Fisrt column - function name;
Second column - internal, external, payable, public;
Third - contract name (inherited one);
Probably, forth - inside functios;
So it will be much easier to see a contract stucture.
The text was updated successfully, but these errors were encountered: