gmajor-encrypt / php-scale-codec

substrate php scale codec
https://packagist.org/packages/gmajor/substrate-codec-php
MIT License
7 stars 7 forks source link

Bug: Encoding "Raw: Bytes" is wrong #27

Closed leonardocustodio closed 1 month ago

leonardocustodio commented 1 month ago

Scale codec uses particular encoding for Raw Bytes.

Right now it is impossible to encode this way in this library

https://github.com/polkascan/py-scale-codec/blob/f676638998ce612d9f0b38b135f77a95eacd51ce/scalecodec/types.py#L1334-L1415

gmajor-encrypt commented 1 month ago

@leonardocustodio I will take a look. Thanks report

gmajor-encrypt commented 1 month ago

@leonardocustodio Data type has been update. I can try https://github.com/gmajor-encrypt/php-scale-codec/pull/28/files

leonardocustodio commented 1 month ago

Seems to be working fine, thank you :)