Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Implement an custom Display and Debug implementation for the Address datatype. #1078

@juanbono

Description

@juanbono

The Address type in starknet in rust is just a wrapper around a Felt252 number.
We can improve the debugging experience if we implement the Display and Debug traits for the address datatype to not use the ones in the Felt252 type. Instead we can show the hexadecimal number representation of that felt.
This will make easier to read that kind of values.
Take into account that we should write it in hexadecimal and big endian.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions