Implement recommendations from 5.0 audit Phase 1B (#4502)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: Francisco Giordano <fg@frang.io>
This commit is contained in:
@ -20,6 +20,13 @@ contract('UpgradeableBeacon', function (accounts) {
|
||||
this.beacon = await UpgradeableBeacon.new(this.v1.address, owner);
|
||||
});
|
||||
|
||||
it('emits Upgraded event to the first implementation', async function () {
|
||||
const beacon = await UpgradeableBeacon.new(this.v1.address, owner);
|
||||
await expectEvent.inTransaction(beacon.contract.transactionHash, beacon, 'Upgraded', {
|
||||
implementation: this.v1.address,
|
||||
});
|
||||
});
|
||||
|
||||
it('returns implementation', async function () {
|
||||
expect(await this.beacon.implementation()).to.equal(this.v1.address);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user