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

rfc: unify maketx run and maketx call #1391

Open
thehowl opened this issue Nov 23, 2023 · 0 comments
Open

rfc: unify maketx run and maketx call #1391

thehowl opened this issue Nov 23, 2023 · 0 comments
Labels
📦 🤖 gnovm Issues or PRs gnovm related

Comments

@thehowl
Copy link
Member

thehowl commented Nov 23, 2023

#1001

The summary of how I think we should be going:

  • qeval and msg_call should have the same basic input: an expression which may return a value which is evaluated. With qeval, this is just a query and cannot modify state, while msg_call creates a tx.
  • msg_call can, additionally, be enriched with some extra code, which is parsed as a normal Gno file.
    • This code is executed in the "realm" of the user; any contract calls from that code will have PrevRealm == OrigCaller.
    • msg_call's main parameter may call the functions defined in this realm. Ie. --address my_address --expr 'main()' will be essentially the way that maketx run is working now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related
Projects
Development

No branches or pull requests

1 participant