Skip to content

[ethjs-query] while formatting outputs in 'getTransactionByHash' #17

@ayushkul

Description

@ayushkul

Issue Type

  • Bug

Description

Error: [ethjs-format] hex string '0x0xdce7150b95ec4677ec22b851106cd8964a37158b43' must be an alphanumeric 42 utf8 byte hex

I'm working with an older version of ethjs-query in an old project, lastly, it was working fine. But now it's throwing the following error while checking for the pending transactions. Although the transaction is successful, but it's unable to get its status.

"[ethjs-query] while formatting outputs from RPC '{"blockHash":"0x9970e674ae287c3fdb03b28813d7ed5a82dfa1036cbc5704525e2e45827aead9","blockNumber":"0x169a923","from":"xdce7150b95ec4677ec22b851106cd8964a37158b43","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0x49ff9aea452d64a0456fab70e2aae52b5e3264b934f269b34f590b84259b2c43","input":"0x","nonce":"0x1","to":"xdc73a72fa27979c7d6568a2c72587046b41323f2a9","transactionIndex":"0x0","value":"0xd02ab486cedc0000","v":"0x8a","r":"0x6c62ba8d38a8ddf563ac507a0251071616a57c740bb840117d7e11460ab3dc62","s":"0x5eb0da414fcc0cfea0de1c48dca191b19db7a12763a7d1cb229996677b4211ba"}' for method 'getTransactionByHash' Error: [ethjs-format] hex string '0x0xdce7150b95ec4677ec22b851106cd8964a37158b43' must be an alphanumeric 42 utf8 byte hex (chars: a-fA-F) string, is 46 bytes"

Versions

  • Node/NPM: 8.1.0
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions