-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
callStatic: "Error: call cannot override value" #847
Comments
Yes, you are correct. I will relax this check too. I'm looking at that function in general and contemplating a larger refactor overall... I'll look into this now too. :) |
This should be fixed now in 5.0.0-beta.189. The Contract has been fairly refactored and should allow value for calls. Please try it out and let me know if you have any further issue. Thanks! :) edit: part of the response was for another similar issue and I didn't read close enough which I was responding to; I've updated the above explanation. |
Seems to work! Thank you! |
Before doing a transaction, I am trying to use "callStatic" to simulate a transaction/call in order to check if the transaction/call will revert, and if yes- grab the Revert reason to display to the user.
If I have a payable function, and I attempt to try
callStatic
with my method name, params and the override with my value, I get the following error:Am I wrong in thinking I should be able to use callStatic with a value on a payable function? This might be related to my other issue:
#845
The text was updated successfully, but these errors were encountered: