From 084208043f3fc08148b79014fd364b3829f0f241 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Wed, 15 Jan 2025 18:01:32 -0300 Subject: [PATCH] fix codegen imports --- src/dipdup/config/substrate_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dipdup/config/substrate_events.py b/src/dipdup/config/substrate_events.py index dc9e43759..c814fe712 100644 --- a/src/dipdup/config/substrate_events.py +++ b/src/dipdup/config/substrate_events.py @@ -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