Skip to content
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

Return data from Solana Anchor program is now a List, rather than a String #1460

Closed
raymond0 opened this issue May 30, 2024 · 0 comments · Fixed by #1567
Closed

Return data from Solana Anchor program is now a List, rather than a String #1460

raymond0 opened this issue May 30, 2024 · 0 comments · Fixed by #1567
Assignees

Comments

@raymond0
Copy link

raymond0 commented May 30, 2024

If an anchor program returns data, it now comes back as a list with the base64 encoding, and a 'base64' string, rather than just a String on its own. As a result, this decode throws an exception.

image

It's also possible to return a wide range of types, so I'm not sure of the best approach here.

Locally I've converted this to a dynamic type, however I'm not sure of the precise fix you'd want here. LMK and I'll submit a PR.

@raymond0 raymond0 changed the title Return data list now a List, rather than a String Return data from Solana Anchor program is now a List, rather than a String May 30, 2024
@Jaxiii Jaxiii self-assigned this Jul 22, 2024
@Jaxiii Jaxiii mentioned this issue Jul 22, 2024
5 tasks
@ookami-kb ookami-kb self-assigned this Sep 9, 2024
ookami-kb added a commit that referenced this issue Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants