Skip to content

Commit

Permalink
Fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0Vu committed Apr 20, 2018
1 parent 1c64178 commit ace76b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RLP.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public function encode($inputs)
$output = new Buffer;
$input = $this->toBuffer($inputs);
$length = $input->length();
// var_dump($input);

if ($length === 1 && $input[0] < 128) {
return $input;
Expand Down Expand Up @@ -251,7 +250,7 @@ protected function toBuffer($input)
} elseif (is_string($input)) {
if (strpos($input, '0x') === 0) {
// hex string
$input = str_replace('0x', '', $input);
// $input = str_replace('0x', '', $input);
return new Buffer($input, 'hex');
}
return new Buffer(str_split($input, 1));
Expand Down

0 comments on commit ace76b4

Please sign in to comment.