-
Notifications
You must be signed in to change notification settings - Fork 45
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
brick doesn't allow checking return value of contract calls #104
Comments
It would be a great idea for the I set this as a proposal. Please look at this @sunpuyo :) |
If call tx has a return value, it is not recommended because it will be charged more fee. It is good to use query to check the state change caused by call tx. |
@sunpuyo Thanks a lot for the response. I know that
Thanks again! |
@aspiers I agree with the need for this feature. However, to support this, the syntax of call and query must be identical. For e.g., If I modify the call syntax similar to query as follows: |
I think it's OK if they are a different order. It's not ideal but it's better as a short-term fix than not being able to check the return value at all. Thinking longer term, it should be possible to migrate both commands to a new syntax in which the order doesn't matter, by prefixing optional arguments with identifiers like
but also:
|
In brick,
query
allows an optionalexpected_query_result
parameter for checking the return value from the query. However there is no equivalent parameter for checking the return value from acall
. This would be a useful feature.The text was updated successfully, but these errors were encountered: