Code Monkey home page Code Monkey logo

Comments (8)

jtobin avatar jtobin commented on August 16, 2024 1

Yeah I'll take a look at the NFTokenMock business. Will reopen in the meantime.

from azimuth.

Fang- avatar Fang- commented on August 16, 2024

Wait huh, they don't? Last I checked only PlanetSale tests sporadically tripped over a tiny inaccuracy in account balance.

from azimuth.

jtobin avatar jtobin commented on August 16, 2024

The PlanetSale tests indeed still do that, but I also noticed some problems with NFTokenMock. I think I used to know what the latter was related to, but don't anymore.. 😄

Re: the PlanetSale tests, since we know about the small handful-of-wei inaccuracy and haven't judged it to be an issue, perhaps we should just relax the passing condition by comparing within +-20 wei or whatever is required (instead of a hard equality check).

from azimuth.

Fang- avatar Fang- commented on August 16, 2024

The NFTokenMock function should be consistent until you change the Ecliptic.sol code? iirc there was some web3-side weirdness with function overloading. If that's still a thing, it might be fixable by just using a more recent web3 version.

from azimuth.

jtobin avatar jtobin commented on August 16, 2024

I took a look into the NFTokenMock tests and they can just fail (apparently) nondeterministically. Sometimes they all pass, other times one or another fails due to an unhandled EVM revert.

It might be worth updating the truffle version, since there's been a new major release, and that will include a newer web3. I'll close this one in any case.

from azimuth.

jtobin avatar jtobin commented on August 16, 2024

(Reopening this because the NFTokenMock test problems have annoyed me yet again, so this is clearly still an issue..)

from azimuth.

jtobin avatar jtobin commented on August 16, 2024

#30 may have finally fixed this. I observed the test suite failing occasionally when I checked that branch pre-merge, but it's possible I simply forgot to npm install the new dependencies or something stupid like that. I've since run the test suite a bunch of times and haven't seen any of those weird NFTokenMock issues.

I'll be bold, close this, and hope I never have to open it again.

from azimuth.

jtobin avatar jtobin commented on August 16, 2024

^ nm

from azimuth.

Related Issues (16)

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.