Skip to content

Commit 419ae89

Browse files
committed
Token: ensure we're passing int
1 parent e16ac97 commit 419ae89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Ethereum/Token.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private function sanitizeHex(string $hex): string {
4444
private static function bcdechex(string $dec): string {
4545
$end = bcmod($dec, '16');
4646
$remainder = bcdiv(bcsub($dec, $end), '16');
47-
return $remainder == 0 ? dechex($end) : static::bcdechex($remainder) . dechex($end);
47+
return $remainder == 0 ? dechex((int) $end) : static::bcdechex($remainder) . dechex((int) $end);
4848
}
4949

50-
}
50+
}

0 commit comments

Comments
 (0)