Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
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

@Jack-Works

Description

@Jack-Works
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)

Metadata

Metadata

Assignees

Labels

4.x4.0 relatedBugAddressing a bugP1High severity bugs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions