abi-decoder icon indicating copy to clipboard operation
abi-decoder copied to clipboard

the abi-decoder.js is missing

Open brlojam4932 opened this issue 4 years ago • 4 comments

I am new to programing but this file is not there at all - there is no actual file named abi-decoder.js ...? Am I missing something?

brlojam4932 avatar Jul 21 '21 01:07 brlojam4932

I have the same issue as well. Do you manage to find it?

PlanetTheCloud avatar Nov 13 '21 11:11 PlanetTheCloud

Yeah, someone posted on the comments that he probably purposely leaves out a piece from the lesson so that you will be more inclined to sign up to his services. It seems believable since this happens in most of his tutorials. I can never finish some of his tutorials. I think it's worth it to sign up the his coding bootcamps but I'm already on one.

brlojam4932 avatar Nov 13 '21 22:11 brlojam4932

Well, to those who wanted to decode the ABI, please take a look at https://web3js.readthedocs.io/en/v1.5.2/web3-eth-abi.html#decodeparameters. If you are trying to decode input data with a function call, remove the first 8 bytes of the HEX (https://github.com/ChainSafe/web3.js/issues/3016#issuecomment-828274902)

PlanetTheCloud avatar Nov 15 '21 10:11 PlanetTheCloud

I think the code is all there in index.js, but it delegates some functionality to abiCoder from web3js.

https://github.com/ConsenSys/abi-decoder/blob/a9ed4923433ad32069e2ea963d683ed2ff49fa07/index.js#L2

Yiwen-Gao avatar Oct 17 '22 02:10 Yiwen-Gao