Skip to content

fix event signature#250

Merged
q9f merged 7 commits intoq9f:mainfrom
wuminzhe:main
Jun 23, 2024
Merged

fix event signature#250
q9f merged 7 commits intoq9f:mainfrom
wuminzhe:main

Conversation

@wuminzhe
Copy link
Contributor

No description provided.

"#{name}(#{types.join(",")})"
end

def type(input)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add basic docs to the method? 🙏🏼

if input["type"] == "tuple"
"(#{input["components"].map {|c| type(c) }.join(",")})"
elsif input["type"] == "enum"
"uint8"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you provide a test case for tuple and enum so I can make sure not to break it in future?

Copy link
Owner

@q9f q9f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore the failing spec, it does not work on CI due to permissions.

@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2023

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@502aa91). Learn more about missing BASE report.

Current head dfc7ac3 differs from pull request most recent head f85e47e

Please upload reports for the commit f85e47e to get more accurate results.

Files Patch % Lines
lib/eth/abi/event.rb 71.42% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #250   +/-   ##
=======================================
  Coverage        ?   99.44%           
=======================================
  Files           ?       77           
  Lines           ?     4483           
  Branches        ?        0           
=======================================
  Hits            ?     4458           
  Misses          ?       25           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@q9f q9f merged commit 9333e1a into q9f:main Jun 23, 2024
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.

3 participants