Skip to content

Commit

Permalink
fix: protocolEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkenj1 committed Oct 23, 2024
1 parent 3faf95e commit 38aff32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("RoleGrantedHandler", () => {
const blockNumber = 123456; // Example blockNumber
const mockedAccount = "0x48f33AE41E1762e1688125C4f1C536B1491dF803";
const mockedSender = "0xc0969723D577D31aB4bdF7e53C540c11298c56AF";
const mockedEvent: ProtocolEvent<"Registry", "RoleGranted"> = {
const mockedEvent = {
blockTimestamp: 123123123,
chainId: 10,
contractName: "Registry",
Expand All @@ -41,7 +41,7 @@ describe("RoleGrantedHandler", () => {
hash: "0x123",
transactionIndex: 1,
},
};
} as ProtocolEvent<"Registry", "RoleGranted">;

it("returns an empty array if role is ALLO_OWNER_ROLE", async () => {
const event = mockedEvent;
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/types/events/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export type ProtocolEvent<T extends ContractName, E extends ContractToEventName<
: T extends "Allo"
? E extends "PoolCreated"
? { strategyId: Address }
: Record<string, never>
: Record<string, never>);
: object
: object);

/**
* TODO: This type is currently only used in the EventsFetcher and IndexerClient.
Expand Down

0 comments on commit 38aff32

Please sign in to comment.