Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bcmath dependency to composer.json #3

Merged
merged 1 commit into from
Jan 15, 2021
Merged

Add bcmath dependency to composer.json #3

merged 1 commit into from
Jan 15, 2021

Conversation

sh41
Copy link
Contributor

@sh41 sh41 commented Jan 15, 2021

Thanks for making this module, it's been really useful. I recently discovered that if bcmath is not installed all legacy validation will return false without showing any errors or failures in the code.

Adding bcmath as a dependency should make this problem visible during dependency installation.

bcmath extension is used in `Base58::decodeAddress()` function. If bcmath is not installed, all calls to `AddressValidator::isValid()`, `AddressValidator::isPayToPublicKeyHash() & `AddressValidator::isPayToScriptHash()` will return `false`. Adding bcmath as a dependency should make this problem visible before any code is run.
@kielabokkie kielabokkie self-assigned this Jan 15, 2021
@kielabokkie kielabokkie added the enhancement New feature or request label Jan 15, 2021
@kielabokkie kielabokkie merged commit bd456be into kielabokkie:master Jan 15, 2021
@kielabokkie
Copy link
Owner

Thanks @sh41 👍 I've just released v2.0.1 that includes your fix.

@sh41 sh41 deleted the patch-1 branch September 28, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants