question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why do raw data was "0x"?

See original GitHub issue

I’m using getTransactionReceipt() here are result.

  logs:
   [ { transactionIndex: 0,
       blockNumber: 7,
       transactionHash:
        '0x5fe9806d27253fa4356ebdc77f82dc07a24b8518dae780f46893643c814bb922',
       address: '0x44f6e9F1f4e7bf436985cFF92047FB8a7fC717dF',
       topics: [Array],
       data: '0x',
       logIndex: 0,
       blockHash:
        '0x20961d0c5868799456e1683df52724c5a27c15dddc1b2fd77bb7a9c768427257' },
     { transactionIndex: 0,
       blockNumber: 7,
       transactionHash:
        '0x5fe9806d27253fa4356ebdc77f82dc07a24b8518dae780f46893643c814bb922',
       address: '0x9F1feE6Ec310899d3B6D65c3f1A13795c82e42eD',
       topics: [Array],
       data: '0x',
       logIndex: 1,
       blockHash:
        '0x20961d0c5868799456e1683df52724c5a27c15dddc1b2fd77bb7a9c768427257' } ],

I’m expecting data: '0x', will be there just like web3.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ricmoocommented, Aug 25, 2020

This sounds like it may be specific to some aspect of Web3.js, so I’m going to close this now. But if you come up with an example to work from, please re-open.

Thanks! 😃

0reactions
chiro-hirocommented, Aug 28, 2020

@ricmoo Never mind, web3 just changed its concept too. I think, this part is remaining data for non-indexed params of event. I’m expecting some raw data field so I could do parse my own.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are hex numbers prefixed with # instead of 0x?
Since hex notations like 0xCAFE , $CAFE or CAFEh are used to represent nondescript raw data, it might have led to confusion to...
Read more >
Why Do We Need Transaction Data? - Medium
The raw input data for the transaction above is ... The 0x at the beginning indicates that this will be a hexadecimal value,...
Read more >
[confirmation popup] '0x' prefix included in vanilla TX's raw data ...
Since the last fix '0x' will show up in the raw data block in the confirmation popup window. Now Before.
Read more >
Convert the raw data in little endian format on x64 system
The raw data gets from the device in endian neutral format.
Read more >
Measuring the impact of hidden DEX costs - Blog - 0x
At the same time, you can see that there are some trades (in red) that typically result in negative slippage (below the zero...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found