Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ernanirst committed Jan 8, 2024
1 parent f0084e5 commit c6569d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
21 changes: 9 additions & 12 deletions test/SftRolesRegistry/SftRolesRegistry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,22 +359,19 @@ describe('SftRolesRegistry', async () => {
})

it('should release when there are two revocable roles', async () => {

await assertGrantRoleEvent(
SftRolesRegistry, grantor, 1, grantee.address, true, grantor, 'ANOTHER_ROLE'
)
await assertGrantRoleEvent(SftRolesRegistry, grantor, 1, grantee.address, true, grantor, 'ANOTHER_ROLE')

await expect(SftRolesRegistry.connect(grantor).releaseTokens(GrantRoleData.commitmentId))
.to.emit(SftRolesRegistry, 'TokensReleased')
.withArgs(GrantRoleData.commitmentId)
.withArgs(GrantRoleData.commitmentId)
.to.emit(MockToken, 'TransferSingle')
.withArgs(
SftRolesRegistry.address,
SftRolesRegistry.address,
grantor.address,
CommitmentCreated.tokenId,
CommitmentCreated.tokenAmount,
)
.withArgs(
SftRolesRegistry.address,
SftRolesRegistry.address,
grantor.address,
CommitmentCreated.tokenId,
CommitmentCreated.tokenAmount,
)
})

it('should release when there are no roles', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/SftRolesRegistry/helpers/assertEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function assertGrantRoleEvent(
commitmentId,
grantee,
revocable,
role
role,
})
if (anotherUser) {
const tokenAddress = await SftRolesRegistry.tokenAddressOf(commitmentId)
Expand Down

0 comments on commit c6569d8

Please sign in to comment.