Code Monkey home page Code Monkey logo

Comments (5)

krzkaczor avatar krzkaczor commented on May 18, 2024

you got Typechain from npm, right? I haven't do release in few days and there was a ton of changes. I will do one today.

In the meantime can you share ABI file that you want to parse?

from typechain.

kdelwat avatar kdelwat commented on May 18, 2024

Yes, downloaded from npm. I just updated to the new version and still have the same error unfortunately.

I have attached an example ABI that isn't working (extension renamed to txt so that Github doesn't complain!)

Auction.txt

from typechain.

krzkaczor avatar krzkaczor commented on May 18, 2024

@kdelwat thanks! Okay, I see the problem: you don't have plain ABI file but the one generated by truffle or something i.e. it is a nested object — real abi is inside key "abi". Typechain expects that abi file is a long array (value of "abi" key in your example). This what solc generates.

However, I think that supporting these nested ABI files can be more user friendly and I will add it soon.

from typechain.

kdelwat avatar kdelwat commented on May 18, 2024

Ah that makes sense, sorry for the mistake on my part - I am using truffle to generate them. Thanks for the help, looking forward to the support.

from typechain.

krzkaczor avatar krzkaczor commented on May 18, 2024

Thanks for reporting! It got fixed in #13 and it's released as 0.0.7.

from typechain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.