You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: