Code Monkey home page Code Monkey logo

eserialize's People

Contributors

meowsbits avatar semantic-release-bot avatar shanejonas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eserialize's Issues

add padding + no prefix options

Is your feature request related to a problem? Please describe.
As a user i'd like to have paddingg and no prefix to have better tools for building smart contract calls

support E-notation for numbers

Is your feature request related to a problem? Please describe.
I'm frustrated when I have to type a lot of zeros.

Describe the solution you'd like
I want to be able to use E-notation to write numbers.

Screenshot_20191210_063218

add 'isSerializedFormat' function

Add function that tests whether input fits serialized pattern, returns bool.

pseudo:

function isSerializedFormat(input) {
    return input.match(/[0-9a-fx]*/i) && (input.match(/^0x/i) ||  input.match(/^00/));
}

hexToNumber does not throw on invalid hex input

Describe the bug
hexToNumber does not throw an error or return a "bad" value when given an invalid hex value.

To Reproduce
Run test in #6.

Expected behavior
Functions should have "bad" return values when given "bad" parameter values.

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.