Skip to content

Provide a toJson method on receipt and record which is consistent across all SDKs #1589

Open
@gregscullard

Description

@gregscullard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions