diff --git a/src/Contract.php b/src/Contract.php index a4f9bc0..8885fa5 100644 --- a/src/Contract.php +++ b/src/Contract.php @@ -863,29 +863,4 @@ class Contract return $functionData; } } - - /** - * getEventLogs - * - * @param string $eventName - * @return string - */ - public function getEventLogs($eventName) - { - $eventSignature = $this->ethabi->encodeEventSignature($eventName); - $eventInputParametersStringArray = array_column($this->events[$eventName]['inputs'], 'type'); - - $this->eth->getLogs([ - 'topics' => array($eventSignature), - 'address' => $this->toAddress - ], - function ($error, $result) use (&$output) { - if ($error !== null) { - throw new RuntimeException($error->getMessage()); - } - $output = $result; - }); - - return $this->ethabi->decodeParameters($eventInputParametersStringArray, $output[0]->data); - } }