Use Ownable in VestingWallet instead of an immutable beneficiary (#4508)
Co-authored-by: Francisco Giordano <fg@frang.io>
This commit is contained in:
@ -29,7 +29,7 @@ contract('VestingWallet', function (accounts) {
|
||||
});
|
||||
|
||||
it('check vesting contract', async function () {
|
||||
expect(await this.mock.beneficiary()).to.be.equal(beneficiary);
|
||||
expect(await this.mock.owner()).to.be.equal(beneficiary);
|
||||
expect(await this.mock.start()).to.be.bignumber.equal(this.start);
|
||||
expect(await this.mock.duration()).to.be.bignumber.equal(duration);
|
||||
expect(await this.mock.end()).to.be.bignumber.equal(this.start.add(duration));
|
||||
|
||||
@ -59,7 +59,9 @@ contract('Create2', function (accounts) {
|
||||
addr: offChainComputed,
|
||||
});
|
||||
|
||||
expect(await VestingWallet.at(offChainComputed).then(instance => instance.beneficiary())).to.be.equal(other);
|
||||
const instance = await VestingWallet.at(offChainComputed);
|
||||
|
||||
expect(await instance.owner()).to.be.equal(other);
|
||||
});
|
||||
|
||||
it('deploys a contract with funds deposited in the factory', async function () {
|
||||
|
||||
Reference in New Issue
Block a user