You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Is your feature request related to a problem? Please describe.
When using the implementation of H160, using the to_string method, the hex string is truncated like so: 0x3712…99d8.
Describe the solution you'd like
It would make much more sense to me to have it display the full hexstring address like: 0x37121F74d25262011ABBBcc8D13E6923AEb699d8.
Additional Context
This is just my opinion but I think users should define their own logic for truncating an H160 if they want to, since there isn't a standard AFAIK. The path for converting H160 -> String is not clear to people without knowledge of UpperHex and LowerHex traits.
The text was updated successfully, but these errors were encountered:
this also caused me some grief, but I think the argument for it is that the debug impl already outputs the entire address so display impl can truncate.
but this is implemented via the uint crate in the primitive-types crates. so nothing we can do here.
Is your feature request related to a problem? Please describe.
When using the implementation of H160, using the
to_string
method, the hex string is truncated like so:0x3712…99d8
.Describe the solution you'd like
It would make much more sense to me to have it display the full hexstring address like:
0x37121F74d25262011ABBBcc8D13E6923AEb699d8
.Describe alternatives you've considered
https://stackoverflow.com/a/75509511/16245971 this is the alternative I'm using right now, which doesn't feel intuitive.
Additional Context
This is just my opinion but I think users should define their own logic for truncating an H160 if they want to, since there isn't a standard AFAIK. The path for converting H160 -> String is not clear to people without knowledge of
UpperHex
andLowerHex
traits.The text was updated successfully, but these errors were encountered: