-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
jsonrpc: when dry-running suggest a gas price if an input object is c… #21355
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be preferable to roll this into the gas price that we dry-run the transaction with? i.e. before we dry-run, get a suggested price (or use the reference gas price), then the price will be made available as part of the existing field in transaction data.
This also has the benefit that when you dry-run to do gas-cost estimation, it will take into account the suggested price because of contention.
One possible issue with that is that it would technically be a change in semantics of the api, that and it would only benefit users if they explicitly omit the gas price as a part of the dryrun. If the wallet/sdk team would prefer that approach though then we can look at doing it that way |
Makes sense, thanks! No strong opinions about where to put the value (having it in a response is more intuitive for me). I assume most folks wouldn't use this RPC directly: it's going to be mostly leveraged by the SDKs, right? Just want to make sure they understand the semantics of the result and we don't need to load the variable name to make it self-explanatory :) (it's None for most objects most of the time, and the non-None values might be volatile and lose freshness fast) |
This is the main question -- adding @Jordan-Mysten and @hayes-mysten to weigh in.
I'm also thinking about our discussions around a resolution/simulation API that takes a partial transaction and fills out all these details -- the latter approach is more aligned with that. |
…ongested
Description
Describe the changes or additions included in this PR.
Test plan
How did you test the new or updated feature?
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.