-
Notifications
You must be signed in to change notification settings - Fork 87
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
Smart Contract cli.transact_and_wait returning nil, instead for error message #223
Comments
Yes, this means that your transaction didn't succeed. I just reviewed the logic and we throw an error, if something goes wrong and return a hash if it succeeds. However, currently, there is no logic to inform you if something happens to the transaction execution in the virtual machine. I'll think about a better handling here. |
I've noticed the problem (transact_and_wait returns nil) when connecting to infura, even when the transaction succeeds. I believe the problem is not Line 318 in 041aa92
but that Line 319 in 041aa92
My guess is that the transaction receipt doesn't propagate to the network readers used by infura quickly enough when calling Line 366 in 041aa92
Writing and then not being able to read right after is a pretty common race condition. Could solve by updating Line 367 in 041aa92
If this is something you'd like to see, I'd be happy to submit a PR. |
I'll gladly review such a PR, thanks! |
Hello,
When submitting transact_and_wait to a remote connect, I get
nil
instead of an error message. Would love a message so I can debug properly!PS: to add, even when I get a Success transaction, I am still getting
nil
Thank you
The text was updated successfully, but these errors were encountered: