Skip to content

Commit

Permalink
Revert "Fixed data parsing for __kind=GeneralKey"
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Jan 31, 2025
1 parent cc50655 commit 50b0738
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Releases prior to 7.0 has been removed from this file to declutter search result

- cli: Fixed help message on `CallbackError` reporting `batch` handler instead of actual one.
- substrate.subsquid: Fixed parsing nested structures in response.
- substrate.subsquid: Fixed data parsing for `__kind=GeneralKey`.

### Changed

Expand Down
1 change: 0 additions & 1 deletion src/dipdup/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
from tortoise.fields.relational import ManyToManyFieldInstance as ManyToManyFieldInstance
from tortoise.fields.relational import ManyToManyRelation as ManyToManyRelation
from tortoise.fields.relational import OneToOneField as OneToOneField
from tortoise.fields.relational import OneToOneFieldInstance as OneToOneFieldInstance
from tortoise.fields.relational import OneToOneNullableRelation as OneToOneNullableRelation
from tortoise.fields.relational import OneToOneRelation as OneToOneRelation
from tortoise.fields.relational import ReverseRelation as ReverseRelation
Expand Down
10 changes: 0 additions & 10 deletions src/dipdup/runtimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,6 @@ def extract_subsquid_payload(data: Any) -> Any:
if 'key' in data:
return {kind: data['key']}

# See: https://github.com/galacticcouncil/hydration-node/blob/master/precompiles/utils/src/solidity/codec/xcm.rs#L294
if (
'data' in data and
'length' in data and
isinstance(data['data'], str) and
data['data'].startswith('0x') and
isinstance(data['length'], int)
):
return {kind: data['data'][:2+data['length']*2]}

return kind

return data
Expand Down

0 comments on commit 50b0738

Please sign in to comment.