[FIX] Calling $this from static context
The static function pubKeyToAddress() was calling $this->hash160(). Changed to self::hash160().
This commit is contained in:
parent
8275e06fcc
commit
cb4d69f092
@ -211,7 +211,7 @@ class Bitcoin {
|
||||
* @access public
|
||||
*/
|
||||
public static function pubKeyToAddress($pubkey) {
|
||||
return self::hash160ToAddress($this->hash160($pubkey));
|
||||
return self::hash160ToAddress(self::hash160($pubkey));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user