diff --git a/ethereum.php b/ethereum.php index 16901f7..d22012d 100755 --- a/ethereum.php +++ b/ethereum.php @@ -187,7 +187,11 @@ function eth_estimateGas($message, $block) } else { - return $this->ether_request(__FUNCTION__, $message->toArray()); + $message_array = $message->toArray(); + if($block) { + array_push($message_array, $block); + } + return $this->ether_request(__FUNCTION__, $message_array); } } @@ -497,4 +501,4 @@ function toArray() ) ); } -} \ No newline at end of file +}