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
We have a (bad but easily fixed) implementation in func (d *InherentsData) Encode() ([]byte, error) right now, and this one should be moved in the scale codec.
It has to be fixed to encode the key and value as tuples instead of writing them directly and pushing the encoding responsibility to the caller.
The function func (d *InherentsData) Encode() can then be removed and replaced with the scale package Marshal function
The text was updated successfully, but these errors were encountered:
As defined: https://spec.polkadot.network/#defn-scale-dictionary
We have a (bad but easily fixed) implementation in
func (d *InherentsData) Encode() ([]byte, error)
right now, and this one should be moved in the scale codec.It has to be fixed to encode the key and value as tuples instead of writing them directly and pushing the encoding responsibility to the caller.
The function
func (d *InherentsData) Encode()
can then be removed and replaced with the scale packageMarshal
functionThe text was updated successfully, but these errors were encountered: