You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)")
The text was updated successfully, but these errors were encountered:
Description
In Gnonative Kit, we use
gnoclient
to makeqeval
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 onlyUserData
fromqeval
, 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)"
)The text was updated successfully, but these errors were encountered: