hedera-sdk-java
hedera-sdk-java copied to clipboard
Provide a toJson method on receipt and record which is consistent across all SDKs
Problem
Using different SDKs with WalletConnect, it's impossible to provide a consistent JSON representation of a Receipt or Record. .stringify and .marshal in javascript and golang output differing results.
Solution
Add a toJson method to receipt and record which convert the object to a consistent JSON format (using the JS stringify as a reference) so that all SDKs can generate identical Json.
Alternatives
Let developers write their own equivalence libraries which is likely to go wrong with changes to receipts/records.
Hi @gregscullard and thank you for submitting this issue. I will check it.
Also for TransactionResponse