Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

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

Closed
Jack-Works opened this issue Jul 3, 2024 · 2 comments
Closed
Assignees
Labels
4.x 4.0 related Bug Addressing a bug P1 High severity bugs

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

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
@mconnelly8 mconnelly8 added P0 Critical severity bugs P1 High severity bugs and removed P0 Critical severity bugs labels Sep 16, 2024
@jdevcs jdevcs self-assigned this Sep 26, 2024
@jdevcs jdevcs mentioned this issue Sep 26, 2024
17 tasks
@jdevcs jdevcs closed this as completed Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4.x 4.0 related Bug Addressing a bug P1 High severity bugs
Projects
None yet
Development

No branches or pull requests

4 participants