Code Monkey home page Code Monkey logo

Comments (7)

wanderer avatar wanderer commented on May 13, 2024
  • defineProperties is something i'm not really satisfied with. It attaches an Array of properties to an object with setters that perform validation. I think this should be pulled out to it own module or find a module to replace this function.
  • printBA - just prints an array of buffers, this is a debugging function... maybe we should move it to ethereumjs-testing
  • baToJSON - Also created for debugging but it has production use cases, use definitely needs a test

from ethereumjs-util.

wanderer avatar wanderer commented on May 13, 2024

2b7bf63 adds tests for baToJSON

from ethereumjs-util.

wanderer avatar wanderer commented on May 13, 2024

meeh i'm just scrapping printBA its pretty much worthless at this point

from ethereumjs-util.

axic avatar axic commented on May 13, 2024

baToJSON (it doesn't even return JSON, only if the input is an Array) seems so specific for defineProperties, shouldn't that be internal to it?

from ethereumjs-util.

wanderer avatar wanderer commented on May 13, 2024

I have used it for debugging and creating text dumps, so thats why its not internal.

from ethereumjs-util.

wanderer avatar wanderer commented on May 13, 2024

I'm looking at json-schema to replace the validation done by defineProps

from ethereumjs-util.

wanderer avatar wanderer commented on May 13, 2024

done! i ended up just writing test for defineFields

from ethereumjs-util.

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.