Merge branch 'master' into audit/wip/2a-2b

This commit is contained in:
Hadrien Croubois
2023-09-13 11:14:09 +02:00
72 changed files with 1159 additions and 1430 deletions

View File

@ -14,6 +14,10 @@ contract('Ownable', function (accounts) {
this.ownable = await Ownable.new(owner);
});
it('rejects zero address for initialOwner', async function () {
await expectRevertCustomError(Ownable.new(constants.ZERO_ADDRESS), 'OwnableInvalidOwner', [constants.ZERO_ADDRESS]);
});
it('has an owner', async function () {
expect(await this.ownable.owner()).to.equal(owner);
});