Added explicity pify dep, deprecating web3.eth. (#1532)

* Added explicity pify dep, deprecating web3.eth.

* Dropped promisify in favor of pify.
This commit is contained in:
Nicolás Venturo
2018-12-03 19:15:30 -03:00
committed by GitHub
parent 41c540fb1e
commit b7d56d5471
6 changed files with 71 additions and 10 deletions

View File

@ -4,6 +4,7 @@ const ethAsync = pify(web3.eth);
module.exports = {
ethGetBalance: ethAsync.getBalance,
ethSendTransaction: ethAsync.sendTransaction,
ethGetBlock: ethAsync.getBlock,
ethGetTransactionReceipt: ethAsync.getTransactionReceipt,
ethSendTransaction: ethAsync.sendTransaction,
};