Closed arihantbansal closed 1 month ago
Types such as Uint8Array in TS should get compiled down to Vec<u8> type. This seems to work when it is a type of parameter in function definitions, but not when used as a field type for accounts.
Uint8Array
Vec<u8>
Reference code: https://github.com/arihantbansal/program-examples/tree/poseidon-account-data/basics/account-data/poseidon
Types such as
Uint8Array
in TS should get compiled down toVec<u8>
type. This seems to work when it is a type of parameter in function definitions, but not when used as a field type for accounts.Reference code: https://github.com/arihantbansal/program-examples/tree/poseidon-account-data/basics/account-data/poseidon