Giter VIP home page Giter VIP logo

ex_rlp's People

Contributors

ayrat555 avatar dependabot[bot] avatar dkataskin avatar hayesgm avatar kianmeng avatar paulperegud avatar pdobacz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ex_rlp's Issues

rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.Transaction)(types.txdata).R

moved from ethereumex to here.

hi there, thanks for your good work.

when i send transaction using Ethereumex.HttpClient.eth_send_raw_transaction(signed_transaction), sometime errors occur just like that:

no match of right hand side value: {:error, %{"code" => -32000, "message" => "rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.Transaction)(types.txdata).R"}}

ex_rlp version: the latest version 0.5.3

if i change any part of transaction, nonce, gas_price, etc., errors disappear.

i searched for a long time, it looks like a problem of RLP, mentioned years before:

https://ethereum.stackexchange.com/questions/71616/ethereum-boardcast-shows-error-non-canonical-integer-leading-zero-bytes-for

MOACChain/moac-core#24

it looks like that's hard to reproduce it, cause it's random to generate the leading zeros in R or S. i will try it more using large amount of random transaction arguments, as this error reproduced, it will be posted here.

thanks in advance.

RLP Decode is not correct

"what the fuck" |> ExRLP.encode(encoding: :hex) 
"8d7768617420746865206675636b"

Decode It in Web3.js:

 web3.utils.toAscii("0x8d7768617420746865206675636b")
'�what the fuck'

There is an extra symbol there

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.