Skip to content

fix: address payable parsing#275

Merged
tmm merged 8 commits into
wevm:mainfrom
khaidarkairbek:address-payable-parse
Aug 18, 2025
Merged

fix: address payable parsing#275
tmm merged 8 commits into
wevm:mainfrom
khaidarkairbek:address-payable-parse

Conversation

@khaidarkairbek
Copy link
Copy Markdown
Contributor

Fixes #274 . This solves it by expanding the regex in parseAbiParameter to accept address payable as a solidity type and then later mapping it to address abi type.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 5, 2025

⚠️ No Changeset found

Latest commit: 5b13f09

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
abitype Ready Ready Preview Comment Aug 18, 2025 7:57pm

Copy link
Copy Markdown
Member

@tmm tmm left a comment

Choose a reason for hiding this comment

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

Runtime looks good. We need to update ParseSignature type utility as well. Added a test case for this to show what needs to be fixed.

Comment on lines +212 to +218
assertType<ParseSignature<'function foo(address payable to) external'>>({
name: 'foo',
type: 'function',
stateMutability: 'nonpayable',
inputs: [{ type: 'address', name: 'to' }],
outputs: [],
})
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need to get this to pass

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Got it to pass on the type level now.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.90%. Comparing base (d153cd6) to head (8af399c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #275   +/-   ##
=======================================
  Coverage   99.90%   99.90%           
=======================================
  Files          26       26           
  Lines        6163     6165    +2     
  Branches      194      195    +1     
=======================================
+ Hits         6157     6159    +2     
  Misses          5        5           
  Partials        1        1           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Aug 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/abitype@275

commit: 8af399c

@tmm tmm merged commit 3446180 into wevm:main Aug 18, 2025
4 checks passed
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.

can't parse address payable arg

2 participants