0xMiden / 0xMiden/protocol

Implement proper `Display` for fungible and non-fungible assets

Abierto
#2,526 3 comentarios 0 reacciones 0 asignados Ver en GitHub
rust
Lenguaje dominante
Rust
Estrellas
132
Forks
167
Merge medio
1 d 23 h
PR fusionados (30 d)
110

Descripción

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 https://github.com/0xMiden/protocol/pull/2437#discussion_r2862039155_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.