Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dipdup/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ def _merge_bigmapdiffs(self, storage_dict: Dict[str, Any], bigmap_name: str, arr
def _process_storage(self, storage_type: Type[StorageType], storage: Dict, prefix: str = None):
for key, field in storage_type.__fields__.items():

bigmap_name = key if prefix is None else '.'.join([prefix, key])

if key == '__root__':
continue

if field.alias:
key = field.alias

bigmap_name = key if prefix is None else '.'.join([prefix, key])

# NOTE: TzKT could return bigmaps as object or as array of key-value objects. We need to guess this from storage.
# TODO: This code should be a part of datasource module.
if field.type_ not in (int, bool) and isinstance(storage[key], int):
Expand Down