-
Notifications
You must be signed in to change notification settings - Fork 31
Description
ethjs-util
Before opening a new issue, please take a moment to review our community guidelines to make the contribution process easy and effective for everyone involved.
Before opening a new issue, you may find an answer in already closed issues:
https://github.com/ethjs/ethjs-util/issues?q=is%3Aissue+is%3Aclosed
Issue Type
- [X ] Bug (https://github.com/ethjs/ethjs-util/blob/master/.github/CONTRIBUTING.md#bug-reports)
- Feature (https://github.com/ethjs/ethjs-util/blob/master/.github/CONTRIBUTING.md#feature-requests)
Description
Ethereum declares that hex values should be encoded compactly.
0x0
0x1
0x11
are all valid
0x
0x00
0x01
are not
This causes problems when this library is used in products that talk to software that adheres more strictly to the standard - e.g. go-ethereum linked code talking to ganache.
This stems from
https://github.com/ethjs/ethjs-util/blob/master/src/index.js#L4-L33
(Add images if possible)
Steps to reproduce
(Add link to a demo on https://jsfiddle.net or similar if possible)
Versions
- Node/NPM:
- Browser: