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
Is your feature request related to a problem? Please describe.
I'm always frustrated when contracts have to write code to deal with simple problems. BE-serialized integers are useful because of their ordering characteristics, but default int->bytes conversion is LE in the VM.
Describe the solution you'd like
Provide methods to obtain fixed-width byte string from integer in BE format.
Is your feature request related to a problem? Please describe.
I'm always frustrated when contracts have to write code to deal with simple problems. BE-serialized integers are useful because of their ordering characteristics, but default int->bytes conversion is LE in the VM.
Describe the solution you'd like
Provide methods to obtain fixed-width byte string from integer in BE format.
Additional context
nspcc-dev/neofs-contract#438
The text was updated successfully, but these errors were encountered: