We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a95e8cf + 448f6cf commit f0f08abCopy full SHA for f0f08ab
src/Validation/LTC.php
@@ -6,7 +6,8 @@
6
7
class LTC extends Validation
8
{
9
- const DEPRECATED_ADDRESS_VERSIONS = ['31', '03'];
+
10
+ const DEPRECATED_ADDRESS_VERSIONS = ['31', '05'];
11
12
protected $deprecatedAllowed = false;
13
@@ -18,7 +19,7 @@ class LTC extends Validation
18
19
20
protected function validateVersion($version)
21
- if (!$this->deprecatedAllowed && !in_array($this->addressVersion, self::DEPRECATED_ADDRESS_VERSIONS)) {
22
+ if (!$this->deprecatedAllowed && in_array($this->addressVersion, self::DEPRECATED_ADDRESS_VERSIONS)) {
23
return false;
24
}
25
return hexdec($version) == hexdec($this->addressVersion);
0 commit comments