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

cmd/abigen: either --abi or --combined-json should be required. #30768

Closed
jwasinger opened this issue Nov 19, 2024 · 1 comment
Closed

cmd/abigen: either --abi or --combined-json should be required. #30768

jwasinger opened this issue Nov 19, 2024 · 1 comment
Assignees
Labels

Comments

@jwasinger
Copy link
Contributor

jwasinger commented Nov 19, 2024

Opening this to remind myself to ensure it's fixed.

Running cmd/abigen/abigen --pkg my_package example.json (erroneously omitting the --abi flag) generates an empty binding. If abigen is run without specifying --combined-json or --abi, it should fail explicitly.

@jwasinger jwasinger self-assigned this Nov 19, 2024
@cedrick-ah
Copy link
Contributor

Hey @jwasinger. I am still familiarizing myself with the project but I would like to work on this if possible.

Looking forward to your thoughts!

@jwasinger jwasinger changed the title cmd/abigen: --abi flag should be required. cmd/abigen: eiether --combined-json or --abi should be required. they should be mutually-exclusive. Jan 19, 2025
@jwasinger jwasinger changed the title cmd/abigen: eiether --combined-json or --abi should be required. they should be mutually-exclusive. cmd/abigen: either --combined-json or --abi should be required. they should be mutually-exclusive. Jan 19, 2025
@jwasinger jwasinger changed the title cmd/abigen: either --combined-json or --abi should be required. they should be mutually-exclusive. cmd/abigen: either --combined-json or --abi should be required. Jan 19, 2025
@jwasinger jwasinger changed the title cmd/abigen: either --combined-json or --abi should be required. cmd/abigen: either --abi or --combined-json should be required. Jan 19, 2025
MariusVanDerWijden pushed a commit that referenced this issue Jan 20, 2025
This PR addresses issue #30768 , which highlights that running
cmd/abigen/abigen --pkg my_package example.json (erroneously omitting
the --abi flag) generates an empty binding, when it should fail
explicitly.

---------

Co-authored-by: jwasinger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants