-
Notifications
You must be signed in to change notification settings - Fork 117
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
Fixed getChainIdDefault() race condition #1648
Conversation
🦋 Changeset detectedLatest commit: 3c39de9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
ff92ca3
to
17ee594
Compare
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.
Cool!
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.
@jribbink Can we add a test for this?
yeah, my bad |
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.
Looks good, just needs a test(s)!
Thanks, this was causing also problems with some bundlers |
1c68096
to
2f554b3
Compare
Sorry, added the tests now. I had to break the watcher function out into a separate file to write tests with mocks. Also just renamed |
7225901
to
1530845
Compare
1530845
to
3c39de9
Compare
import {setChainIdDefault} from "./get-chain-id" | ||
|
||
/** | ||
* @description |
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.
Thanks for adding JSDoc!
stale review, tests have been added
Closes #1641