mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
fix address validation
This commit is contained in:
parent
b9e5fcc96e
commit
8122cdf8ef
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class Monero_Gateway extends WC_Payment_Gateway
|
||||||
public function validate_monero_address_field($key,$address)
|
public function validate_monero_address_field($key,$address)
|
||||||
{
|
{
|
||||||
if($this->settings['confirm_type'] == 'viewkey') {
|
if($this->settings['confirm_type'] == 'viewkey') {
|
||||||
if (strlen($address) == 95 && substr($address, 0, 1) == '4')
|
if (strlen($address) == 97)
|
||||||
if(self::$cryptonote->verify_checksum($address))
|
if(self::$cryptonote->verify_checksum($address))
|
||||||
return $address;
|
return $address;
|
||||||
self::$_errors[] = 'Wownero address is invalid';
|
self::$_errors[] = 'Wownero address is invalid';
|
||||||
|
|
Loading…
Reference in a new issue