Update modifiers to call public view functions (#1277)
* Update modifiers to call public view functions. Fixes #1179. * remove isMinter * fix is owner call * fix isOpen * Remove unnecessary solium disable
This commit is contained in:
committed by
Francisco Giordano
parent
b8a70f0e55
commit
616124e37c
@ -13,8 +13,11 @@ function shouldBehaveLikeOwnable (owner, [anyone]) {
|
||||
});
|
||||
|
||||
it('changes owner after transfer', async function () {
|
||||
(await this.ownable.isOwner({ from: anyone })).should.be.equal(false);
|
||||
await this.ownable.transferOwnership(anyone, { from: owner });
|
||||
|
||||
(await this.ownable.owner()).should.equal(anyone);
|
||||
(await this.ownable.isOwner({ from: anyone })).should.be.equal(true);
|
||||
});
|
||||
|
||||
it('should prevent non-owners from transfering', async function () {
|
||||
|
||||
Reference in New Issue
Block a user