polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
240 stars 114 forks source link

Substrateinterface block info fetching bug polkadex #397

Closed GeorgeVSV closed 1 month ago

GeorgeVSV commented 1 month ago

I currently face issues with fetching block information via polkadex websocket endpoint (using substrateinterface lib in Python) for blocks with specific transaction type, here are few samples:

Block number : 7275594 Transaction type : stacking (unbound) Error text: RemainingScaleBytesNotEmptyException: Decoding - Current offset: 110 / length: 140 image

Block number : 7275821 Transaction type : system(remark) Error text: ValueError: Index '9' not present in Enum type mapping image

I would be grateful for any help

arjanz commented 1 month ago

See https://github.com/polkascan/py-substrate-interface/issues/396#issuecomment-2214401971

GeorgeVSV commented 1 month ago

@arjanz Hi! This problem also was solved by updating scalecodec, so the issues can be closed