-
Notifications
You must be signed in to change notification settings - Fork 97
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
client/eth: Get receipt before checking status. #1599
Conversation
27e790b
to
826809a
Compare
I got the impression this was used in upcoming work: #1523 (comment) |
NVM, I see it used in #1399 |
Oh shoot. Well... I'll go comment over there and convert this to draft for the time being. |
checkTxStatus would sometimes return a receipt on error, which caused a panic in tests sometimes. Get the receipt separately to avoid this.
826809a
to
97c497b
Compare
Forgot to comment on this. Fixing here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, but could you point out the panic. At a glance I don't see what incorrect logic was there.
dcrdex/client/asset/eth/nodeclient.go Lines 383 to 400 in e500d1c
Imagine Now here in tests: dcrdex/client/asset/eth/nodeclient_harness_test.go Lines 1065 to 1072 in e500d1c
So if a test where The test was expected to fail, but failed for an unexpected reason. I think that simply sticking to the "rule" that if error expect bad returns is best and solves the problem. |
closes #1577