From 82f0405efb63dd1ca506b08f0e2d2b5e61b3f20e Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Wed, 25 Oct 2023 10:43:58 -0300 Subject: [PATCH] fix tests --- src/utils/helper.ts | 1 - tests/helpers/entities.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/utils/helper.ts b/src/utils/helper.ts index f1d8554..3c5dd9f 100644 --- a/src/utils/helper.ts +++ b/src/utils/helper.ts @@ -47,7 +47,6 @@ export function findOrCreateRoleAssignment( if (!roleAssignment) { roleAssignment = new RoleAssignment(roleAssignmentId) roleAssignment.role = findOrCreateRole(event.address.toHex(), nft, event.params._role).id - roleAssignment.rolesRegistry = findOrCreateRolesRegistry(event.address.toHex()).id roleAssignment.nft = nft.id roleAssignment.grantor = grantor.id roleAssignment.grantee = grantee.id diff --git a/tests/helpers/entities.ts b/tests/helpers/entities.ts index 954c7c0..26bda01 100644 --- a/tests/helpers/entities.ts +++ b/tests/helpers/entities.ts @@ -53,7 +53,6 @@ export function createMockRoleAssignment( newRoleAssignment.data = Bytes.fromUTF8('data') newRoleAssignment.createdAt = BigInt.fromI32(123) newRoleAssignment.updatedAt = BigInt.fromI32(123) - newRoleAssignment.rolesRegistry = rolesRegistryAddress newRoleAssignment.save() return newRoleAssignment }