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

[WIP] add test to show bug where offerHook is called twice #1114

Closed
wants to merge 1 commit into from

Conversation

katelynsills
Copy link
Contributor

Bug: If an offer is rejected inside an offerHook, the offerHook is called again.

This PR shows this case with a test: in atomicSwap, Alice creates an initial offer but completes it before bob tries to make a counter offer. Bob's offer is rejected, but strangely, his offerHook is called twice.

Screen Shot 2020-05-14 at 4 51 24 PM

Note that this would not show up as a failing test. Because Bob's offer is already supposed to throw an error, another thrown error doesn't fail any tests.

@erights
Copy link
Member

erights commented May 15, 2020

Is this fixed by #1117 ?

@katelynsills
Copy link
Contributor Author

Is this fixed by #1117 ?

@erights, yup I just confirmed. Thanks for the fix! Closing this

@katelynsills katelynsills deleted the bug-calling-function-twice branch May 15, 2020 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants