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

getEventsOfTransaction 方法返回的结果数据不全 #56

Open
uvd opened this issue Jun 24, 2022 · 1 comment
Open

getEventsOfTransaction 方法返回的结果数据不全 #56

uvd opened this issue Jun 24, 2022 · 1 comment

Comments

@uvd
Copy link
Contributor

uvd commented Jun 24, 2022

getEventsOfTransaction 方法返回

{
"block_hash": "0x550002f991789c937531dabfeb923e2fba51069d341d9a831e8bafd8fc262176",
"block_number": 5685430,
"data": "0x00c2eb0b0000000000000000000000000001000000000000000000000000000000010353544303535443",
"event_key": "0x030000000000000012fd2afaa16ca7480e877098c199ab84",
"event_seq_number": 48,
"transaction_hash": "0xcae7bb63617aedd1cd53935bf050ed91032a64ab005fd3ec5d5d3250c609d448",
"transaction_index": 1,
}

链上方法实际返回

{
  "block_hash": "0x550002f991789c937531dabfeb923e2fba51069d341d9a831e8bafd8fc262176",
  "block_number": "5685430",
  "data": "0x00c2eb0b0000000000000000000000000001000000000000000000000000000000010353544303535443",
  "event_index": 1,
  "event_key": "0x030000000000000012fd2afaa16ca7480e877098c199ab84",
  "event_seq_number": "48",
  "transaction_global_index": "7748783",
  "transaction_hash": "0xcae7bb63617aedd1cd53935bf050ed91032a64ab005fd3ec5d5d3250c609d448",
  "transaction_index": 1,
  "type_tag": "0x12fd2afaa16ca7480e877098c199ab84::GameShowdown::CheckEvent"
}

少了一个很关键的 type_tag

@jolestar
Copy link
Member

这个字段是解析的时候丢了吧?

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