Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
seamon opened this issue May 5, 2020 · 1 comment

Comments

@seamon
Copy link

seamon commented May 5, 2020

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"}}

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

is there something we ignored unintentionally in Ethereumex or ExRLP? and is it possible to resolve it?

thanks in advance.

@InoMurko
Copy link
Member

hey @seamon thank you for opening this issue. Can I ask you please to reopen this issue in ExRLP? https://github.com/mana-ethereum/ex_rlp

It would be very good if you included a step-by-step example where we can replicate the issue you're mentioning. Pls also include the version of ExRLP you're using.
cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants