Skip to content
This repository has been archived by the owner. It is now read-only.

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

Open
ghost opened this issue Aug 23, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 23, 2018

i got a error dialog with prompt "rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.Transaction)(types.txdata).S" while sendRawTransaction using emerald-wallet.
it happens occasionally.

rawTx:
{"from":"0x89ccfcf19d0974132d5088826f9ac0813d12451b","gasPrice":"0x04a817c800","gas":"0x07a120","to":"0x083f4e99AD9798dDb5FcB115d3139F20A367Ab46","value":"0x00","data":"0x01528f5f0000000000000000000000009531ea6e951e20adb91e47c63412f055ba0f1a22"}

and with nonce=1,i got this error.
[error] screenActions - Show error JsonRpcError: rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.Transaction)(types.txdata).S

so i print "tx.s.toString('hex')", it show me:
afc4cee71254d1d85c6c618c25136a008c8ad98470dc72111ddc2f2e2403d8

then i made another transaction,after that, i repeated the last failed transaction.
this time with nonce=3, then the transaction was successful.
so i print "tx.s.toString('hex')", it show me:
3fb5f1b1d1e3b9afa0b7be08230c0942965fbd13457291637c77901b954fe48c

print two times above,the difference is the length one is 62, the other is 64.

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

No branches or pull requests

0 participants