Skip to content
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

forge inspect <sc> abi --pretty raises error #6816

Closed
1 of 2 tasks
radeksvarz opened this issue Jan 16, 2024 · 2 comments · Fixed by #6817
Closed
1 of 2 tasks

forge inspect <sc> abi --pretty raises error #6816

radeksvarz opened this issue Jan 16, 2024 · 2 comments · Fixed by #6817
Labels
T-bug Type: bug

Comments

@radeksvarz
Copy link

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (c5fd67b 2024-01-15T00:23:11.184513736Z)

What command(s) is the bug in?

forge inspect

Operating System

Linux

Describe the bug

💤 forge inspect src/Counter.sol:Counter abi --pretty
Error: 
an error occurred when formatting an argument

Raises also on the very basic contract after forge init.

@mattsse
Copy link
Member

mattsse commented Jan 16, 2024

thanks for flagging,
smol bug, fixed in #6817

@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Jan 16, 2024
@radeksvarz
Copy link
Author

ok, as of forge 0.2.0 (03f5a95 2024-01-17T16:46:46.891738603Z)

it works now:


💤 forge inspect src/Counter.sol:Counter abi --pretty
interface Counter {
    function increment() external;
    function number() external view returns (uint256);
    function setNumber(uint256 newNumber) external;
}


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants