wallet-core: [Filecoin] DecodeSignedMessage CBOR error

Describe the bug When I use IOS signed filecoin transaction to broadcast lotus testnet node, there is an error(decode unmarshaling t.Message: cbor input had wrong number of fields). How can I solve this problem

Screenshots ios sign got the result: 82885501a699731e9d4f382d01539a72985a431c75f74b9b55014074462b17b9d28f6579acdf634c1d28af2e89110048004f550445d5a000430013884300c35000405842013dd5cb90d156b356e7d53c8f85600c838b132afdb3896cd67f5ec6e379c658b708346b8d5d418a57125318448b18c6e735a889d80ac4e12e70e14d9303da6ca700 截屏2020-07-15 21 06 10

go decode signedMessage got the error : decode unmarshaling t.Message: cbor input had wrong number of fields 截屏2020-07-15 21 08 16

And, How can I solve this problem?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 27 (17 by maintainers)

Most upvoted comments

See my PR #1114 for a fix to this, updating wallet-core to the latest Filecoin message ABI.

@togiter @wjd-jax these “+1” comments are not helpful, won’t help prioritize and just spam everyone’s inbox. Please use the 👍 or 👎 buttons on GitHub to show support instead.

Yes, now it is. I used to use pod update and pod install = > pod ‘trustwalletcore’ ‘~ > 2.1.4’ Get the same error, but remove the pod ‘trustwalletcore’, ‘~ > 2.1.4’ = > pod install, and then re install it. The build is successful.

Same problem, field has been changed, hope to be supported as soon as possible

@terorie for sure, thanks 🙏, hope this is the last time change before mainnet

@hewigovens iirc Filecoin changed the message layout since original integration. I’ll take a look later today!