Skip to content
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

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

Nanolucas
Copy link

Updated comments and error messages to improve clarity and consistency

@codecov-io
Copy link

codecov-io commented Jan 2, 2021

Codecov Report

Merging #196 (bb9f9f0) into master (17472b5) will decrease coverage by 2.09%.
The diff coverage is 5.79%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ Complexity Δ
src/Contract.php 68.36% <0.00%> (-7.56%) 179.00 <21.00> (+21.00) ⬇️
src/Contracts/Ethabi.php 77.85% <100.00%> (ø) 66.00 <2.00> (ø)
src/RequestManagers/HttpRequestManager.php 78.37% <0.00%> (-0.57%) 12.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17472b5...bb9f9f0. Read the comment docs.

@Nanolucas
Copy link
Author

Completed implementation of Contract::getEventLogs() functionality, as initially described/requested in #93

@Nanolucas Nanolucas changed the title Improved comments and error messages Implementation of Contract::getEventLogs() and improved general comments and error messages Mar 26, 2021
src/Contract.php Outdated Show resolved Hide resolved
src/Contract.php Outdated Show resolved Hide resolved
@phillmorgan28
Copy link

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++) {
Copy link

@davorminchorov davorminchorov Aug 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants