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

vm/qeval: select a specific return argument in a multiple return values function #3966

Open
D4ryl00 opened this issue Mar 18, 2025 · 0 comments

Comments

@D4ryl00
Copy link
Contributor

D4ryl00 commented Mar 18, 2025

Description

In Gnonative Kit, we use gnoclient to make qeval queries.
Some functions return multiple values.

Is it possible to get a specific value from the return directly by specifying it in the qeval expression, like that (notice here [0]):
gnokey query vm/qeval -data "gno.land/r/sys/users.ResolveName(\"localhost000\")[0].Addr()" -remote http://localhost:26657

It the example of ResolveName, it returns (UserData, bool). I want to get only UserData from qeval, so I don't have to parse the complex returned string ("(&(struct{(\"g183p778vrvk7e78fju29chctsppfjz9zwwuhgsz\" std.Address),(\"localhost003\" string),(false bool)} gno.land/r/sys/users.UserData) *gno.land/r/sys/users.UserData)\n(true bool)")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

1 participant