Skip to content

Implement proper Display for fungible and non-fungible assets #2526

@PhilippGackstatter

Description

@PhilippGackstatter

Fungible asset and non-fungible asset's Display impl should be adapted. It currently delegates to the Debug implementation which is not a stable representation (e.g. it could change with non-breaking changes) and Debug shouldn't be used for user-facing error messages. We may just want to use the hex representation of the underlying key and value words, though maybe there is a better idea.

Updating with alternative:

I'd probably go with a more user-readable representation here - e.g., consisting of issuer and amount.

Originally posted by @bobbinth in #2437 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    rustIssues that affect or pull requests that update Rust code

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions