inLogs no longer returns a promise. (#1169)

This commit is contained in:
Nicolás Venturo
2018-08-08 14:57:00 -03:00
committed by Matt Condon
parent 4066b5e683
commit 31fc572abe
5 changed files with 12 additions and 12 deletions

View File

@ -33,7 +33,7 @@ contract('Bounty', function ([_, owner, researcher]) {
context('with reward', function () {
beforeEach(async function () {
const result = await this.bounty.createTarget({ from: researcher });
const event = await expectEvent.inLogs(result.logs, 'TargetCreated');
const event = expectEvent.inLogs(result.logs, 'TargetCreated');
this.targetAddress = event.args.createdAddress;
@ -56,7 +56,7 @@ contract('Bounty', function ([_, owner, researcher]) {
this.bounty = await InsecureTargetBounty.new();
const result = await this.bounty.createTarget({ from: researcher });
const event = await expectEvent.inLogs(result.logs, 'TargetCreated');
const event = expectEvent.inLogs(result.logs, 'TargetCreated');
this.targetAddress = event.args.createdAddress;
await sendReward(owner, this.bounty.address, reward);