Passing complex types to anchor rpcs fails #1905
Unanswered
deepaktrama
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I modified the basic tutorial example to pass structs but when i run "anchor test" it fails with TypeError: Blob.encode[data] requires (length 4) Buffer as src
The code is attached. Please let me know if I got it wrong somehow.
Thanks,
Lib.rs
basic-1.js
anchor test output
basic_1.json
Beta Was this translation helpful? Give feedback.
All reactions