Code Monkey home page Code Monkey logo

Comments (3)

yuetloo avatar yuetloo commented on August 23, 2024

should be able to compile the contracts without error. The github workflow in this project uses node v14 and ubuntu to compile the contracts and deploy without error. Which template did you try to compile?

from dao-templates.

Guitlle avatar Guitlle commented on August 23, 2024

I tried with the bare and membership templates which are what I'm interested in.

If I do a simple compile I get:

$ npx truffle compile
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
RangeError: Maximum call stack size exceeded
    at Object._db [as dynCall_viiiiii] (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12:120931)
    at invoke_viiiiii (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:1:1117622)
    at Array.ova (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:13:29030)
    at Object.L9a [as dynCall_vi] (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12:99033)
    at invoke_vi (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:1:1114426)
    at Array.wta (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:10:704789)
    at Object.Cfb [as dynCall_iii] (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12:130740)
    at invoke_iii (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:1:1118857)
    at Array.uta (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:10:703085)
    at Object.Xfb [as dynCall_iiiiii] (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12:131900)

Since this truncates the output, I tried doing the following and got this:

$ npx truffle compile 2>&1 | less 
...
...
Compiling @aragon/os/contracts/kernel/KernelProxy.sol...
Compiling @aragon/os/contracts/kernel/KernelStorage.sol...
Compiling @aragon/os/contracts/lib/ens/AbstractENS.sol...
Compiling @aragon/os/contracts/lib/ens/ENS.sol...
Compiling @aragon/os/contracts/lib/ens/PublicResolver.sol...
Compiling @aragon/os/contracts/lib/math/SafeMath.sol...
Compiling @aragon/os/contracts/lib/math/SafeMath64.sol...
Compiling @aragon/os/contracts/lib/misc/ERCProxy.sol...
Compiling @aragon/os/contracts/lib/token/ERC20.sol...
Compiling @aragon/ppf-contracts/contracts/IFeed.sol...
Compiling @aragon/templates-shared/contracts/BaseTemplate.sol...
Compiling @aragon/templates-shared/contracts/Migrations.sol...

.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12
function T5a(a){...... [[[a lot of minified javascript code]]]
....

Maybe this is because it uses an old version of truffle? If there an easier way to develop a new template?

from dao-templates.

Guitlle avatar Guitlle commented on August 23, 2024

I was able to compile by doing this in the compile command in the package.json:

npx --node-arg="--stack-size=1000000" truffle compile --all

from dao-templates.

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.