We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e16ac97 commit 419ae89Copy full SHA for 419ae89
src/Ethereum/Token.php
@@ -44,7 +44,7 @@ private function sanitizeHex(string $hex): string {
44
private static function bcdechex(string $dec): string {
45
$end = bcmod($dec, '16');
46
$remainder = bcdiv(bcsub($dec, $end), '16');
47
- return $remainder == 0 ? dechex($end) : static::bcdechex($remainder) . dechex($end);
+ return $remainder == 0 ? dechex((int) $end) : static::bcdechex($remainder) . dechex((int) $end);
48
}
49
50
-}
+}
0 commit comments