encodeType
of typed data does not encode preset types correctly
#1002
Labels
encodeType
of typed data does not encode preset types correctly
#1002
Describe the bug
encodeType
of type data does not encode preset types correctly.You can verify this from the SNIP:
Where for every preset type, it says:
And per the X is an object, every object should encoded as follows:
The spec also refers to this repo for examples, where preset type
u256
is included along with its properties.To Reproduce
Run this test:
starknet.js/__tests__/utils/typedData.test.ts
Line 50 in fdcc7fb
Expected behavior
All preset types are encoded as objects:
Actual behavior
All preset types are encoded as basic types:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: