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

@ -1,4 +1,5 @@
const SolidityEvent = require('web3/lib/web3/event.js');
const { ethGetTransactionReceipt } = require('./web3');
const BigNumber = web3.BigNumber;
const should = require('chai')
@ -23,7 +24,7 @@ async function inConstruction (contract, eventName, eventArgs = {}) {
}
async function inTransaction (txHash, emitter, eventName, eventArgs = {}) {
const receipt = await web3.eth.getTransactionReceipt(txHash);
const receipt = await ethGetTransactionReceipt(txHash);
const logs = decodeLogs(receipt.logs, emitter.events);
return inLogs(logs, eventName, eventArgs);