-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of Contract::getEventLogs() and improved general comments and error messages #196
base: master
Are you sure you want to change the base?
Conversation
Attempting to make some of the comments and errors easier to understand and clearer in what it does / what is required
A working, improved and deciphered version of the function alluded to in web3p#93
Codecov Report
@@ Coverage Diff @@
## master #196 +/- ##
============================================
- Coverage 87.39% 85.29% -2.10%
- Complexity 729 750 +21
============================================
Files 47 47
Lines 1594 1632 +38
============================================
- Hits 1393 1392 -1
- Misses 201 240 +39
Continue to review full report at Codecov.
|
also improve general comments throughout function
Completed implementation of Contract::getEventLogs() functionality, as initially described/requested in #93 |
Can this be merged into PHP 8 branch? |
$decodedData = array_combine($eventParameterNames, $this->ethabi->decodeParameters($eventParameterTypes, $object->data)); | ||
|
||
//decode the indexed parameter data | ||
for ($i = 0; $i < $numEventIndexedParameterNames; $i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$numEventIndexedParameterNames
is not defined anywhere.
Updated comments and error messages to improve clarity and consistency