Giter Site home page Giter Site logo

Comments (4)

tcoulter avatar tcoulter commented on May 18, 2024

Can you clone the truffle repository from source, and then install from there? The non-released version of Truffle has the solc version bumped to 0.1.6.

$ npm uninstall -g truffle
$ git clone https://github.com/ConsenSys/truffle.git
$ cd truffle
$ npm install -g .

Should work for you. Will release a new version soon.

from truffle.

taoeffect avatar taoeffect commented on May 18, 2024

That seemed to work! πŸ˜„

I ran EtherSim (your version) and truffle test on ether-crawler. Most tests passed, there was one exception at the end:

-> % truffle test
Using environment test.
Compiling contracts...


  Contract: Challenge
    βœ“ expects character, levels, and bet (167ms)
    βœ“ lets you make an offer (85ms)
    βœ“ lets player accept an offer, and initializes a game (424ms)
    βœ“ doesn't blow up when you claim (122ms)
    βœ“ pays out royalties to levels (592ms)

  Contract: ChallengeRegistry
    βœ“ should let you add a challenge (178ms)

  Contract: Game
    βœ“ loads the first level (398ms)
    βœ“ stores extra information about monsters (347ms)
    βœ“ stores information about adventurer (277ms)
    βœ“ starts the adventurer in the upper left corner (284ms)
    βœ“ lets adventurer move to an empty adjacent square (302ms)
    βœ“ lets adventurer consume potion (326ms)
    βœ“ doesn't let adventurer move onto walls (304ms)
    βœ“ doesn't let adventurer move off the edge of the world (265ms)
    1) sends adventurer to the next level if they enter a staircase
    βœ“ attacks monster if adventurer tries to move onto it (354ms)
    βœ“ lets player equip swords (528ms)
    βœ“ kills monster when it drops below 0hp (380ms)
    βœ“ levels adventurer up when they kill monster (387ms)
    βœ“ moves monsters when player moves (375ms)
    βœ“ attacks when player is adjacent (360ms)
    βœ“ lets player equip shields (487ms)
    βœ“ ends game if player goes to 0hp (381ms)
    βœ“ lets you get all squares (597ms)

  Contract: Level
    βœ“ should let you add a staircase (47ms)

  Contract: LevelRegistry
    βœ“ should let you add a level (46ms)
    βœ“ should let you get all levels at once (48ms)


  26 passing (15s)
  1 failing

  1) Contract: Game sends adventurer to the next level if they enter a staircase:
     TypeError: Cannot read property 'binary' of undefined
    at _new (node_modules/ether-pudding/build/ether-pudding.js:86:18)
    at tryCatcher (node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (node_modules/bluebird/js/main/async.js:15:14)
    at Function.module.exports.loopWhile (node_modules/deasync/index.js:64:21)
    at node_modules/deasync/index.js:36:18
    at runTask (truffle.es6:55:5)
    at Object.<anonymous> (truffle.es6:347:14)
    at normalLoader (node_modules/babel-core/lib/api/register/node.js:199:5)
    at Object.require.extensions.(anonymous function) [as .es6] (node_modules/babel-core/lib/api/register/node.js:216:7)
    at Object.<anonymous> (node_modules/babel/lib/_babel-node.js:144:25)
    at node.js:972:3

Not sure what to do with that.

from truffle.

tcoulter avatar tcoulter commented on May 18, 2024

Did you ever fix this issue?

from truffle.

taoeffect avatar taoeffect commented on May 18, 2024

Yep! Thank you!

from truffle.

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.