-
Notifications
You must be signed in to change notification settings - Fork 104
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
Parsing a FunctionCall
call return variable of typeVec<FieldElement>
using a contract's ABI
#286
Comments
Parsing function call return values (and also encoding calldata) is currently a missing feature of Lines 38 to 40 in e3f3e4f
So unfortunately you'll probably have to implement customized decoding logic in your application before this gets done. It's actually next up on my todo list. The lib itself actually needs this too: when interacting with account contracts, data encoding/decoding is currently done manually. I would like to replace that part too. |
Can I provide support/help for this specific part of the roadmap:)? |
Hey @xJonathanLEI, do you have a specific design in mind for the abi decoder? Would something like |
Hey guys sorry for the late reply. I actually quite like the design of |
I'll be working on this one, I had a call with @fracek we discussed the design of the solution, we'll do something similar to |
@haroune-mohammedi That's great! I'm actually also working on supporting Cairo 1 artifact parsing (& class hash computation) so there will be conflicts. It should be easy to resolve but here's the heads up. |
Hi @xJonathanLEI. Is there an ETA for implementing the Decoder? I see there is an issue open for it, but I don't see much activity. |
Hey:),
I'm currently using
starknet-rs
to call the Kakarot contract. Specifically, its entrypoint namedexecute_at_address
(although it is an external function, I call it here as a view).Here is the signature of the function:
I manage to call this function fine, and the return is:
I'd like to isolate each variable in the return. Is there an easy way to do it with Starknet-rs? If not, I can help in building a method to accomplish that.
Thanks! Have a good one
The text was updated successfully, but these errors were encountered: