Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Dec 18, 2024
1 parent c843ca3 commit 43f0284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/dipdup/abi/cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ def _convert_type(type_: CairoType) -> dict[str, Any]:
'additionalProperties': False,
}

if type_.__class__.__name__ in {'ArrayType'}:
if type_.__class__.__name__ == 'ArrayType':
return {
'type': 'array',
'items': _convert_type(type_.inner_type),
}

property_type = {
simple_type = {
'FeltType': 'integer',
'UintType': 'integer',
'BoolType': 'boolean',
}[type_.__class__.__name__]
return {'type': property_type}
return {'type': simple_type}


def _jsonschema_from_event(event: EventType) -> dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/config/starknet_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from dipdup.config import Alias
from dipdup.config import HandlerConfig
from dipdup.config.starknet import StarknetContractConfig
from dipdup.config.starknet import StarknetIndexConfig
from dipdup.config.starknet import StarknetDatasourceConfigU
from dipdup.config.starknet import StarknetIndexConfig
from dipdup.models.starknet import StarknetSubscription
from dipdup.subscriptions import Subscription
from dipdup.utils import pascal_to_snake
Expand Down

0 comments on commit 43f0284

Please sign in to comment.