Skip to content

Conversation

arku
Copy link
Contributor

@arku arku commented Jun 15, 2018

Fixes #999

🚀 Description

Makes use of the toPromise helper already present in the codebase to promisify web3.eth.getBalance function calls throughout the tests.

  • 📘 I've reviewed the OpenZeppelin Contributor Guidelines
  • ✅ I've added tests where applicable to test my new functionality.
  • 📖 I've made sure that my contracts are well-documented.
  • 🎨 I've run the JS/Solidity linters and fixed any issues (npm run lint:all:fix).

@arku arku mentioned this pull request Jun 15, 2018
2 tasks
Copy link

@LogvinovLeon LogvinovLeon left a 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?

@arku
Copy link
Contributor Author

arku commented Jun 18, 2018

@LogvinovLeon Done. Let me know if I missed something. Thanks!

P.S. I can squash the commits before the PR is good to merge.

@LogvinovLeon
Copy link

I'm not the maintainer, but first, make sure tests pass.

@arku arku force-pushed the fix/web3-async-#999 branch from df89197 to 74c3ab9 Compare June 18, 2018 17:52
@arku arku changed the title Promisify web3.eth.getBalance function calls in tests Promisify web3 sync requests in tests Jun 18, 2018
@arku arku force-pushed the fix/web3-async-#999 branch from 74c3ab9 to cd2584c Compare June 18, 2018 20:57
@LogvinovLeon
Copy link

Could you please rebase your changes of the latest master branch?

@LogvinovLeon
Copy link

@shrugs Any chance you or any other maintainer can review that?

@arku
Copy link
Contributor Author

arku commented Jun 25, 2018

@LogvinovLeon Sure, let me do it 🙂

@arku arku force-pushed the fix/web3-async-#999 branch from cd2584c to 4aab9b9 Compare June 25, 2018 20:03
@shrugs shrugs force-pushed the fix/web3-async-#999 branch from 69e43b2 to d59ab6f Compare July 10, 2018 17:18
@shrugs
Copy link
Contributor

shrugs commented Jul 10, 2018

hmm, SOLC_NIGHTLY is failing because of an ECRecovery call throwing instead of returning 0x0. Investigating.

@shrugs shrugs merged commit 40b5594 into OpenZeppelin:master Jul 10, 2018
@arku arku deleted the fix/web3-async-#999 branch July 11, 2018 03:47
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.

Stop using syncronous HTTP requests
3 participants