Skip to content

Commit f0f08ab

Browse files
authored
Merge pull request #5 from androzd/master
fixes
2 parents a95e8cf + 448f6cf commit f0f08ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Validation/LTC.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
class LTC extends Validation
88
{
9-
const DEPRECATED_ADDRESS_VERSIONS = ['31', '03'];
9+
10+
const DEPRECATED_ADDRESS_VERSIONS = ['31', '05'];
1011

1112
protected $deprecatedAllowed = false;
1213

@@ -18,7 +19,7 @@ class LTC extends Validation
1819

1920
protected function validateVersion($version)
2021
{
21-
if (!$this->deprecatedAllowed && !in_array($this->addressVersion, self::DEPRECATED_ADDRESS_VERSIONS)) {
22+
if (!$this->deprecatedAllowed && in_array($this->addressVersion, self::DEPRECATED_ADDRESS_VERSIONS)) {
2223
return false;
2324
}
2425
return hexdec($version) == hexdec($this->addressVersion);

0 commit comments

Comments
 (0)