-
Notifications
You must be signed in to change notification settings - Fork 37
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 support to 'await' the contract run command #433
Comments
Is it possible to do it this way: I think the "options" parameter of the neoxp command is now too much and a bit complicated to use. It's better not to add new options. (if the above is feasible) |
I think the most important reason is that the result of running locally may be different from the result of the transaction executing on the blockchain (e.g. the execution result is related to the block height, related to the random number, related to the storage area), and directly outputting the execution result and the transaction will cause an error. |
Is your feature request related to a problem? Please describe.
Neo Express will only return the transaction results if you send the --results flag. However, these transactions aren't saved. If we use the --account parameter, the transaction is saved but the response is the transaction hash and not the results.
Describe the solution you'd like
Add a flag or equivalent to the contract run feature (using an account parameter) to return the transaction results instead of the transaction hash.
Additional context
The output can be too verbose if we include all the transaction fields. It could print the existing 'results' fields plus the transaction hash:
The text was updated successfully, but these errors were encountered: