Skip to content

Commit

Permalink
AccessManager tests consolidation (#4655)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw committed Oct 12, 2023
1 parent b48d658 commit 6383299
Show file tree
Hide file tree
Showing 8 changed files with 844 additions and 714 deletions.
4 changes: 2 additions & 2 deletions test/access/manager/AccessManaged.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ contract('AccessManaged', function (accounts) {
});

it('reverts if the operation is not scheduled', async function () {
const calldata = await this.managed.contract.methods[method]().encodeABI();
const calldata = this.managed.contract.methods[method]().encodeABI();
const opId = await this.authority.hashOperation(roleMember, this.managed.address, calldata);

await expectRevertCustomError(this.managed.methods[method]({ from: roleMember }), 'AccessManagerNotScheduled', [
Expand All @@ -70,7 +70,7 @@ contract('AccessManaged', function (accounts) {
it('succeeds if the operation is scheduled', async function () {
// Arguments
const delay = time.duration.hours(12);
const calldata = await this.managed.contract.methods[method]().encodeABI();
const calldata = this.managed.contract.methods[method]().encodeABI();

// Schedule
const timestamp = await time.latest();
Expand Down

0 comments on commit 6383299

Please sign in to comment.