remove new function before sending pull request

This commit is contained in:
Nanolucas 2021-01-03 00:00:53 +01:00
parent 121c80ffb0
commit af3bd4c373

View File

@ -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);
}
}