Skip to content
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

Call Before Commit #5

Open
shashiks opened this issue Nov 30, 2017 · 0 comments
Open

Call Before Commit #5

shashiks opened this issue Nov 30, 2017 · 0 comments
Assignees

Comments

@shashiks
Copy link
Owner

For transactions which send money or transfer. Define a validation method which can return a regular success/error code indicating if the operation can be called. Call the actual function after that using
sendTransaction.
This will avoid the problems of revert() consuming all gas and no event being returned from failure.

@shashiks shashiks self-assigned this Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant