web3.js
web3.js copied to clipboard
decodeParameters (web3-eth-abi) should accept readonly AbiInput[]
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)
Also happens in decodeLog
Thanks @Jack-Works , the team will take a look at this asap💪