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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Rust rest client return parsing error for some transactions when calling get_transaction_by_version
. ie. version: 523388616, 523363977
#12702
Comments
get_transaction_by_version
. ie. version: 523388616get_transaction_by_version
. ie. version: 523388616
get_transaction_by_version
. ie. version: 523388616get_transaction_by_version
. ie. version: 523388616, 523363977
Seem these transaction are all
@junkil-park Please have a look. Really appreciate it. |
@Alivers , can you use the BCS version: |
I鈥檝e tried the fix in PR #12445, using the main branch, but I鈥檓 still encountering issues. The error description is mentioned in my first comment. Could you please take a look and provide some guidance or assistance? |
This function works. But I need to change the Transaction Type Reference all my codebase, or is there any convenient way to convert |
My question was that: did |
Unfortunately, the conversion function doesn't seem to exist. However, the information contained in the two struct should largely overlap. |
Did work for a long time. I just recently noticed that. |
Ok, but it is too difficult for me to change the type and match multi-layer invariants(Transaction, Event, WriteSet). Could you please fix this issue? 馃檹馃徎 |
I think that this has not been functioning on the mainnet. I tested it with
Probably, you haven't encountered this Multisig payload cases. The transactions 523388616 and 523363977 you mention are from very recent days, only a few days ago. |
I believe that this PR (#12445) is the fix to the issue you describe. The fix has already landed on the I would highly recommend you to try the BCS version, and let me know if you have any question on that. |
The mainnet branch produced the invalid value map error. But the main branch(which contains the changes of #12445) prodeces the type field missing error. Two different branches. |
It's not just a parsing (deserialization) issue but also a serialization issue. More specifically, the error is caused by the misalignment of serialization and deserialization of MultisigTransactionPayload in JSON, which has exists for a while (#8304). My fix #12445 makes them aligned. It's expected that even though you use |
Got it! Thank you. |
馃悰 Bug
The client entry returns error without a valid reason. There are many transactions with this error.
To reproduce
rust sdk rev is
branch = devnet
.Code snippet to reproduce
Stack trace/error message
The text was updated successfully, but these errors were encountered: