ethjs/ethjs-abi

No support for tuple type

NoahMarconi opened this issue · 9 comments

What's involved in moving the encoding to ethers.js? Maybe I can help; I was using ethers.js to encode my data.

EthFiddle is using your lib which is how I ran into the problem.

So I'm clear, the fix is to update the main index.js methods and defer to ethers.js: https://github.com/ethjs/ethjs-abi/blob/master/src/index.js

Specifically:

  • etherjs-abi.encodeParams -> ethers.AbiCoder.encode
  • etherjs-abi.decodeParams -> ethers.AbiCoder.decode

and that's it?

Hello,

any progress on this issue? Tuples are supported by the EVM for some months already and more and more solidity code take advantage of it.

I'd prefer not to drop ethjs library in my project as it's very lightweight and has a clean API I love to work with :)

Thanks for your feedback

Thanks @SilentCicero for your quick response. Indeed, I'd be interested to have an example for a quick patch ! Many thanks in advance :)

Is there a solution for this here? I'm running into the same issue