Consensys / abi-decoder

Nodejs and Javascript library for decoding data params and events from ethereum transactions
GNU General Public License v3.0
633 stars 218 forks source link

the abi-decoder.js is missing #70

Open brlojam4932 opened 3 years ago

brlojam4932 commented 3 years ago

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?

PlanetTheCloud commented 2 years ago

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

brlojam4932 commented 2 years ago

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.

PlanetTheCloud commented 2 years ago

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)

Yiwen-Gao commented 1 year ago

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