Skip to content

Commit

Permalink
fix codegen imports
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Jan 15, 2025
1 parent 0af4008 commit 0842080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dipdup/config/substrate_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def iter_imports(self, package: str) -> Iterator[tuple[str, str]]:
yield package, 'models as models'

event_cls = snake_to_pascal(self.name) + 'Payload'
event_module = pascal_to_snake(self.name)
event_module = pascal_to_snake(self.name.replace('.', ''))

parent = cast(SubstrateIndexConfig, self.parent)
yield f'{package}.types.{parent.runtime.name}.substrate_events.{event_module}', event_cls
Expand Down

0 comments on commit 0842080

Please sign in to comment.