remove new function before sending pull request
This commit is contained in:
parent
121c80ffb0
commit
af3bd4c373
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user