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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user