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

Can't encode Option<u128> #8

Closed leonardocustodio closed 2 years ago

leonardocustodio commented 2 years ago

There is an error when trying to encode an Option.

We get an exception because we can't use an object in the empty() check. So we get an exception that GMP cannot be converted to bool.

Here is the fix: https://github.com/gmajor-encrypt/php-scale-codec/pull/7

gmajor-encrypt commented 2 years ago

great, thank you