staratlasmeta / factory

Star Atlas Factory for constructing Transactions targeting Solana on-chain programs
https://www.npmjs.com/package/@staratlas/factory
Apache License 2.0
37 stars 15 forks source link

Serialize/deserialize instruction data properly #4

Closed turnyay closed 2 years ago

turnyay commented 3 years ago

Problem

Instruction data manually serialized/deserialized (ie using longToByteArray)

Solution

Use borsch to serialize/deserialize - examples in metadata.ts for metaplex

Alternatives Considered

Notes

skullnbonesdao commented 1 year ago

is this now resolved? cause i can not get BorshDeserialize to work on instruction-data