Fix from account in remove public role behaviors (#1710)

This commit is contained in:
Vittorio Minacori
2019-04-05 23:06:22 +02:00
committed by Nicolás Venturo
parent 35d8e860ad
commit 81e36d2e74

View File

@ -101,11 +101,11 @@ function shouldBehaveLikePublicRole (authorized, otherAuthorized, [anyone], role
});
it('reverts when removing from an unassigned account', async function () {
await shouldFail.reverting(this.contract[`remove${rolename}`](anyone), { from });
await shouldFail.reverting(this.contract[`remove${rolename}`](anyone, { from }));
});
it('reverts when removing role from the null account', async function () {
await shouldFail.reverting(this.contract[`remove${rolename}`](ZERO_ADDRESS), { from });
await shouldFail.reverting(this.contract[`remove${rolename}`](ZERO_ADDRESS, { from }));
});
});
});