Giter VIP home page Giter VIP logo

Comments (5)

marsrobertson avatar marsrobertson commented on May 19, 2024

AST = abstract syntaxt tree

I've just wanted to use truffle-flattener, encountered an issue: kleros/kleros-interaction#249 (comment)

Would be nice to get it working but outside of my area of expertise.

from truffle-flattener.

Pet3ris avatar Pet3ris commented on May 19, 2024

+1, would be awesome to support this, currently an issue while trying to flatten dydx contracts!

from truffle-flattener.

SharjeelSafdar avatar SharjeelSafdar commented on May 19, 2024

It would be a great feature. In case one is using an external library, one can't avoid circular dependencies. E.g. there are circular dependencies in @OpenZeppelin.

from truffle-flattener.

mrx23dot avatar mrx23dot commented on May 19, 2024

How does solc solve this?
It also generates one binary file from multiple .sol ones.

Here is an example contract that fails 0x1d681d76ce96e4d70a88a00ebbcfc1e47808d0b8
temp.zip

Error: ENOENT: no such file or directory, open 'c:/tmp/flt/build/temp/action_pipeline_interfaces/IGelatoInAndOutFlowAction.sol'

from truffle-flattener.

alcuadrado avatar alcuadrado commented on May 19, 2024

We have no intention of adding support for cyclic dependencies.

In general, you should avoid flattening. In particular, flattening to verify a contract is a risky move, as it can lead to different compilation outputs. Use hardhat-etherscan or a similar system instead.

from truffle-flattener.

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.