-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add is_view
or similar "simulate-only" flag for deploy commands
#1249
Comments
+1 I think we should make the --is-view a command that is present on all commands that submit a tx. Separate to this I think we should also rename |
This ticket tracks separating |
I think this makes sense as one way to go. To be clear the way that you would emulate this behaviour is with the following:
Although @willemneal was also exploring adding a |
What problem does your feature solve?
When user is about to deploy a contract to main-net, the (estimated) fee for the upload and install is unknown.
What would you like to see?
soroban contract deploy --wasm xx --network xx --is_view
(or other named flag) to allow a simulation against the actual networkIn the same way
soroban contract invoke
has the--is_view
flag to only simulate a call.What alternatives are there?
As far as I know, an approximate calculation could be made if the wasm size and network settings are know, but it's non-trivial.
The text was updated successfully, but these errors were encountered: