Skip to content

Commit

Permalink
Solidity: PHP and BN
Browse files Browse the repository at this point in the history
  • Loading branch information
kornrunner committed Jul 24, 2018
1 parent 160dde5 commit b7ffbb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Solidity.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static function int2hex($input): string {
$pad = 'f';
}

return str_pad(dechex($input), 64, $pad, STR_PAD_LEFT);
return str_pad((new BN($input))->toString('hex'), 64, $pad, STR_PAD_LEFT);
}

private static function string2hex(string $input): string {
Expand Down

0 comments on commit b7ffbb8

Please sign in to comment.