We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_abi_input_names
When I pass an ABI function or event with unnamed inputs, get_abi_input_names throws an error KeyError: 'name'.
KeyError: 'name'
According to this article, names are optional.
function_abi = {"type": "uint256"} get_abi_input_names(function_abi)
return [ arg.get("name", None) for arg in cast(Sequence[ABIComponent], abi_element.get("inputs", [])) ]
No response
pip freeze
The text was updated successfully, but these errors were encountered:
arg.get
get_abi_output_names
Successfully merging a pull request may close this issue.
What happened?
When I pass an ABI function or event with unnamed inputs,
get_abi_input_names
throws an errorKeyError: 'name'
.According to this article, names are optional.
Code that produced the error
Full error output
KeyError: 'name'
Fill this section in if you know how this could or should be fixed
return [
arg.get("name", None)
for arg in cast(Sequence[ABIComponent], abi_element.get("inputs", []))
]
eth-utils Version
No response
Python Version
No response
Operating System
No response
Output from
pip freeze
No response
The text was updated successfully, but these errors were encountered: