-
Notifications
You must be signed in to change notification settings - Fork 14
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
external function invoke() returns always false #7
Comments
Invoke also doesn't really need to return anything, so we could just remove it from the method definition? |
Not sure. Lastly, thinking about chained delegations, where the invocation would be chained (?) and dependent on one-another -> the successful invocation of all items in a batch would be required. But not sure if I have enough of an understanding of how that would happen atm. I'll look at it later. |
Today all batches of invocations are atomic and require success, so you can assume they will all succeed as a group. I considered early on making this a parameter, and letting users opt out of atomicity, but I think I didn't bother for simplicity. You can always submit more batches if you want non-atomicity. Since atomicity is ensured, we might not need the return value? |
Yes. To the best of my knowledge. Batch building might require use case specific validation or filtering. |
@parseb This actually isn't true. The external I find this warning annoying, so I made a quick change to explicitly set the @danfinlay I think we keep the bool return of external |
@McOso Not sure what you are saying. -- |
Thesis: invoke function will always return false.
Reasoning:
success
is declared, returned, but never assigned to.delegatable-sol/contracts/Delegatable.sol
Lines 125 to 141 in d12016f
Solution, maybe:
The text was updated successfully, but these errors were encountered: