Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
add #11
Browse files Browse the repository at this point in the history
  • Loading branch information
xboston committed Jun 29, 2019
1 parent 92f1824 commit 2dc4570
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/MetaHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,16 @@ public function setEcdsa(MetaHashCrypto $ecdsa): void
*
* @param string $address
*
* @param bool $fast
*
* @return bool
*/
public function checkAddress(string $address): bool
public function checkAddress(string $address, bool $fast = false): bool
{
if ($fast) {
return \strpos($address, '0x0') === 0 && \strlen($address) === 52;
}

return $this->getEcdsa()->checkAdress($address);
}

Expand Down

0 comments on commit 2dc4570

Please sign in to comment.