From ace76b490e3463f99cf732a0d8bdb0b817310ee1 Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Fri, 20 Apr 2018 16:36:04 +0800 Subject: [PATCH] Fix #11 --- src/RLP.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/RLP.php b/src/RLP.php index 911aa8c..070b327 100644 --- a/src/RLP.php +++ b/src/RLP.php @@ -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; @@ -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));