Skip to content

Commit

Permalink
some change
Browse files Browse the repository at this point in the history
  • Loading branch information
yoozo committed Jul 2, 2024
1 parent 751e669 commit 9bec094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/controller/generate-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ export const yamlExtractor: ManifestExtractor<EthereumDs[]> = (dataSources, case
const topics = (handler.filter as EthereumLogFilter).topics?.[0];
const func = (handler.filter as EthereumTransactionFilter).function;

if ('topics' in handler.filter && topics) {
if (topics) {
existingEvents.push(topics);
}
if ('function' in handler.filter && func) {
if (func) {
existingFunctions.push(func);
}
});
Expand Down

0 comments on commit 9bec094

Please sign in to comment.