web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

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

Open Jack-Works opened this issue 1 year ago • 2 comments

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 avatar Jul 03 '24 12:07 Jack-Works

Also happens in decodeLog

Jack-Works avatar Jul 03 '24 14:07 Jack-Works

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

SantiagoDevRel avatar Jul 04 '24 19:07 SantiagoDevRel