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

get transaction rpc unmarshal error #175

Closed
shaojunda opened this issue Nov 18, 2022 · 2 comments
Closed

get transaction rpc unmarshal error #175

shaojunda opened this issue Nov 18, 2022 · 2 comments

Comments

@shaojunda
Copy link
Contributor

shaojunda commented Nov 18, 2022

Bug Report

Encountered error json: cannot unmarshal non-string into Go struct field TxStatus.tx_status.block_hash of type types.Hash while getting a rejected transaction through RPC GetTransaction

tx_hash: 0xb2b8911aeac92de53fc3edc218cf979ae4752a7a67e698b0b1726db53126f31f

calling RPC directly through the node can return normally.

{"jsonrpc":"2.0","result":{"transaction":null,"tx_status":{"block_hash":null,"reason":"{\"type\":\"Resolve\",\"description\":\"Resolve failed Dead(OutPoint(0xb64253fca9a6fa060f5cd3e16cfd8a618c7d2e3aa3aa9a6d190d79fc405ac64f00000000))\"}","status":"rejected"}},"id":42}

Environment

  • CKB version: 0.105.1
  • ckb-sdk-go version: v2.0.2
  • Chain: testnet
  • Operating system: Ubuntu 20.04
  • Arch: x64
@fjchen7
Copy link
Contributor

fjchen7 commented Nov 19, 2022

This problem has already been fixed in develop branch but not released yet. Thanks for reporting and we will add more test cases for usability.

@code-monad
Copy link
Collaborator

This issue was fixed previously and got some update in the recent release. please check https://github.com/nervosnetwork/ckb-sdk-go/releases/tag/v2.1.0

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

3 participants