Comments (5)
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.
+1, would be awesome to support this, currently an issue while trying to flatten dydx
contracts!
from truffle-flattener.
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.
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.
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)
- Solidity 0.7.0 constructor without modifier breaks parser HOT 3
- Format is incorrect if import is separated into multiple lines HOT 1
- Does Not Support Pragma Statement Including `||` HOT 1
- Will support hardhat? HOT 4
- Crashes when pathname includes spaces. HOT 2
- Invalid Path Problem HOT 1
- Support for HardHat HOT 3
- None of the sub-resolvers resolved "nft\node_modules\@openzeppelin\contracts\token\ERC721\ERC721Full.sol" location. HOT 7
- truffle-flattener output has multiple SPDX licenses HOT 1
- Cannot verify SmartContract on BSCscan.. help please to flatten code? HOT 1
- Could not parse smart contract with "unchecked block" syntax HOT 18
- TypeError: Definition of base has to precede definition of derived contract abstract contract HOT 2
- How to export the flattened version generated by truffle-flattener? HOT 3
- solidity 0.8.0,truffle-flattener,packaging sol file problem HOT 6
- npx github:fedeb95/truffle-flattener is error!!! HOT 2
- Remove truffle env dependence HOT 1
- Add output file option HOT 4
- Error: None of the sub-resolvers resolved "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol" location. HOT 2
- SPDX-License-Identifier: MIT
- pragma is not defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from truffle-flattener.