-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support of anchor deserialzation #93
Conversation
examples/sol-anchor-contract/programs/example-sol-anchor-contract/src/state.rs
Outdated
Show resolved
Hide resolved
examples/sol-anchor-contract/programs/example-sol-anchor-contract/src/state.rs
Show resolved
Hide resolved
@guibescos Hi Guillermo, it took me some time to fix this issue. I tried your suggestion of writing my own My latest solution is to use The code now seems neat and it is consistent with Anchor's recommended way of deserializing account from non-anchor programs. (Anchor's recommendation is here) Please take a look. Thanks! |
examples/sol-anchor-contract/programs/example-sol-anchor-contract/src/state.rs
Outdated
Show resolved
Hide resolved
examples/sol-anchor-contract/programs/example-sol-anchor-contract/src/state.rs
Outdated
Show resolved
Hide resolved
Did you try rewriting |
Hey Guillermo, yes I did and please see this branch I copied many things from I am getting compiler errors related to the Lastly, I feel that using the anchor |
After discussing with Guillermo, we decided to drop the approach of rewriting After discussing with Ali, we decided to use Also, I noticed that the test I added in another PR is failing. I will ask Ali what may go wrong. |
No description provided.