Git Product home page Git Product logo

Comments (6)

holiman avatar holiman commented on July 24, 2024 1

patch to remove leading 0's from strings.

An address is not a string, it's a fixed-length (20) byte array.

from rlp.

slawomir-pryczek avatar slawomir-pryczek commented on July 24, 2024

So you say if the library im using is stripping 0-bytes from addresses it's not following the standard?

from rlp.

slawomir-pryczek avatar slawomir-pryczek commented on July 24, 2024
switch ($encoding) { case 'hex': if (strpos($input, '0x') === 0) { $input = str_replace('0x', '', $input); }

This code gets triggered for address

from rlp.

slawomir-pryczek avatar slawomir-pryczek commented on July 24, 2024

Actually found your other comment, thanks

from rlp.

sc0Vu avatar sc0Vu commented on July 24, 2024

Thanks @slawomir-pryczek, I'll fix this asap.

from rlp.

yamadashy avatar yamadashy commented on July 24, 2024

I am currently facing this issue as well and am hopeful for a resolution.
Could the merging of the following PR potentially address this problem? If there is anything I can do to assist or expedite the process, I am more than willing to help.
#28

from rlp.

Related Issues (10)

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.