Skip to content

Commit

Permalink
fix: types issue
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnigir1 committed Oct 23, 2024
1 parent 827e8d3 commit f9c552e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe("EnvioIndexerClient", () => {
srcAddress: "0x1234567890123456789012345678901234567890",
logIndex: 0,
params: { contractAddress: "0x1234" },
transactionFields: { hash: "0x1234", transactionIndex: 0 },
},
];

Expand Down
6 changes: 5 additions & 1 deletion packages/shared/src/types/events/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ export type ProtocolEvent<T extends ContractName, E extends ContractToEventName<
: never;
};

export type AnyProtocolEvent = ProtocolEvent<ContractName, ContractToEventName<ContractName>>;
//TODO: check if this is the best way
export type AnyProtocolEvent = Omit<
ProtocolEvent<ContractName, ContractToEventName<ContractName>>,
"strategyId"
>;

0 comments on commit f9c552e

Please sign in to comment.