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

decodeParameters (web3-eth-abi) should accept readonly AbiInput[] #7136

Open
Jack-Works opened this issue Jul 3, 2024 · 2 comments
Open
Labels
4.x 4.0 related Bug Addressing a bug

Comments

@Jack-Works
Copy link

decodeParameters((abi as AbiFunctionFragment).outputs, output)

reports the following type error:

Argument of type 'readonly AbiParameter[]' is not assignable to parameter of type 'AbiInput[]'.

I have to write this but this is unnecessary

decodeParameters([...(abi as AbiFunctionFragment).outputs], output)
@Jack-Works
Copy link
Author

Also happens in decodeLog

@SantiagoDevRel
Copy link
Member

Thanks @Jack-Works , the team will take a look at this asap💪

@mconnelly8 mconnelly8 added Bug Addressing a bug 4.x 4.0 related labels Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x 4.0 related Bug Addressing a bug
Projects
None yet
Development

No branches or pull requests

3 participants