You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would like to add support for Coption encoding/decoding for interacting with accounts using fields of that type. Requires a new layout class in borsh/src/index.ts
Would like to add support for Coption encoding/decoding for interacting with accounts using fields of that type. Requires a new layout class in
borsh/src/index.ts
Code would look like this:
Happy to create the PR myself. Just let me know if the team supports adding this. Already using a jerry-rigged version of this for my own codebase.
Only question is around
else if (discriminator >= 1)
. I believe that the coption would also evaluate to 1 if it's set, but I'm not 100% sure.The text was updated successfully, but these errors were encountered: