Turbin3 / poseidon

A Transpiler to convert your Solana programs from Typescript to Anchor
https://turbin3.github.io/poseidon/
49 stars 19 forks source link

Uint8Array and related types not compiling correctly #10

Closed arihantbansal closed 1 month ago

arihantbansal commented 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.

Reference code: https://github.com/arihantbansal/program-examples/tree/poseidon-account-data/basics/account-data/poseidon