Open mindell opened 2 years ago
According to the tests is seems to be working: https://github.com/tighten/solana-php-sdk/blob/main/tests/Unit/BorshTest.php
Yes, but deserializing NFT and then serializing it again is not working. Anyway, I already use ts-node on that part.
@mindell this does indeed seem like a bug currently. Feel free to write a pull request for it or I'll get to it eventually in the future.
@neverything , this is NOT a bug.
The class doesn't contain the method @mindell was trying to call.
See: https://github.com/verze-app/solana-php-sdk/blob/main/src/Borsh/BinaryWriter.php
For both the serializer and deserializer to work, one needs to use a valid STRUCT and the struct needs to include the definition of any other custom structs it might be using.
See: https://github.com/verze-app/solana-php-sdk/blob/main/src/Accounts/Metadata.php
FYI, I just made a pull request. https://github.com/verze-app/solana-php-sdk/pull/53
When i tried Borsh::serialize() i got this error..