-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Promisify web3 sync requests in tests #1009
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
Conversation
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.
LGTM. Can we promisify all other sync HTTP requests too?
@LogvinovLeon Done. Let me know if I missed something. Thanks! P.S. I can squash the commits before the PR is good to merge. |
I'm not the maintainer, but first, make sure tests pass. |
df89197
to
74c3ab9
Compare
74c3ab9
to
cd2584c
Compare
Could you please rebase your changes of the latest |
@shrugs Any chance you or any other maintainer can review that? |
@LogvinovLeon Sure, let me do it 🙂 |
cd2584c
to
4aab9b9
Compare
69e43b2
to
d59ab6f
Compare
hmm, SOLC_NIGHTLY is failing because of an ECRecovery call throwing instead of returning |
Fixes #999
🚀 Description
Makes use of the
toPromise
helper already present in the codebase to promisifyweb3.eth.getBalance
function calls throughout the tests.npm run lint:all:fix
).