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
Native Assets names are 32 byte maximum binary fields.
The index stores them as strings, not strings.
The endpoint response also does not consider that each asset hash (id) can have multiple asset names associated with it.
Currently it is only handling one asset name per asset hash.
The Value of the asset is also restricted to u64, but it can be in the range:
minInt64 = -9223372036854775808
maxInt64 = 9223372036854775807
Expected Behavior
To fix:
The Asset name needs to be stored in the index as binary bytes.
Multiple asset names per asset id need to be properly reported.
The asset name in the response needs to be converted to a string using the AssetName types From<Vec<u8>> implementation.
Change the value for Native assets to be i128, to handle the extended range they support.
Project
Backend
What operating system are you seeing the problem on?
macOS, Linux, Windows
What browsers are you seeing the problem on?
Not Applicable
Relevant log output
No response
Anything else?
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
Native Assets names are 32 byte maximum binary fields.
The index stores them as strings, not strings.
The endpoint response also does not consider that each asset hash (id) can have multiple asset names associated with it.
Currently it is only handling one asset name per asset hash.
The Value of the asset is also restricted to u64, but it can be in the range:
minInt64 = -9223372036854775808
maxInt64 = 9223372036854775807
Expected Behavior
To fix:
From<Vec<u8>>
implementation.Project
Backend
What operating system are you seeing the problem on?
macOS, Linux, Windows
What browsers are you seeing the problem on?
Not Applicable
Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: