From af8ae1d9fc48241651d4f218259eaa97cb01e2f2 Mon Sep 17 00:00:00 2001 From: walesyu Date: Tue, 17 Apr 2018 17:30:07 +0800 Subject: [PATCH] Update ethereum.php some eth_call need the block argument --- ethereum.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 +}