mirror of
https://github.com/OPSnet/monerophp.git
synced 2026-11-07 06:16:02 -10:00
little fixes
This commit is contained in:
1 parent
49711f7337
commit
a199f9ab04
2 files changed
+2
-3
No files matched your search
+1
-1
@@ -306,7 +306,7 @@ class base58
|
||||
for ($i = count($data) - 1; $i >= 0; $i--) {
|
||||
$digit = strpos(self::$alphabet, chr($data[$i]));
|
||||
if ($digit < 0) {
|
||||
throw new Exception("base58->decode_block(): Invalid character ($digit \"{$digit}\" not found in base58::$alphabet)");
|
||||
throw new Exception("base58->decode_block(): Invalid character ($digit \"{$digit}\" not found in base58::\$alphabet)");
|
||||
}
|
||||
|
||||
$product = bcadd(bcmul($order, $digit), $res_num);
|
||||
|
||||
@@ -97,8 +97,7 @@ class jsonRPCClient
|
||||
}
|
||||
$this->validate( !is_null($responseDecoded['error']), $errorMessage);
|
||||
}
|
||||
if(isset($responseDecoded['result']) return $responseDecoded['result'];
|
||||
else return -1;
|
||||
return $responseDecoded['result'] ?? -1;
|
||||
}
|
||||
|
||||
protected function & getResponse(&$pRequest, &$path)
|
||||
|
||||
Reference in new issue
Block a user