From cb4d69f092c87b1aac07efae8b777c2a8431863e Mon Sep 17 00:00:00 2001 From: headz Date: Mon, 16 Dec 2013 23:51:50 -0500 Subject: [PATCH] [FIX] Calling $this from static context The static function pubKeyToAddress() was calling $this->hash160(). Changed to self::hash160(). --- public/include/classes/bitcoin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/bitcoin.class.php b/public/include/classes/bitcoin.class.php index ad26267d..62db8414 100644 --- a/public/include/classes/bitcoin.class.php +++ b/public/include/classes/bitcoin.class.php @@ -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)); } /**