wealdtech / ethereal

Apache License 2.0
209 stars 41 forks source link

Failed to decode data: encoding/hex: odd length hex string #4

Closed cenotaph closed 6 years ago

cenotaph commented 6 years ago

Can't seem to get anything from ethereal transaction info - all transactions I'm trying (pending and completed) return the error message:

Failed to decode data: encoding/hex: odd length hex string

I've tried it with a space between --transaction and the address, with an = between them, with the 0x at the front of the transaction hash address and without as well.

mcdee commented 6 years ago

Thank you for reporting this issue. Please could you provide a full command line you are using that generates this error?

cenotaph commented 6 years ago

Sure!

ethereal transaction info --transaction=0x93539dc189fb003ed2e154dd22bc3c8ecf1e9c2d0d5d85e472ba8590e38c1e700x93539

mcdee commented 6 years ago

That transaction ID looks corrupt. Removing 0x93539 from the end of it seems to work:

ethereal transaction info --transaction=0x93539dc189fb003ed2e154dd22bc3c8ecf1e9c2d0d5d85e472ba8590e38c1e70
Type:                   Pending transaction
From:                   0x04E1b2FF4EcE25F07C67B97757f1C490924E0a04
To:                     0x9b412B5bBD012C1756AA4B976556539eA85B2D82
Nonce:                  4323
Gas limit:              940000
Gas price:              1.000005 GWei
Value:                  0
cenotaph commented 6 years ago

Ah! OK, seems like copying and pasting from Etherscan is for some reason adding that to the end. I didn't notice, sorry for the useless issue. Keep up the great work.