Skip to content

Conversation

0xIchigo
Copy link
Contributor

This PR aims to help resolve #219 as our Proxy leaks the unknown[] type into the declaration of methods like getSignaturesForAddress

This PR updates the Proxy's get trap to create an untyped wrapper inline, and then each wrapper is explicitly cast to AutoSent<t>[K] where K is the method key. This forces the .d.ts to use the inferred signature from AutoSent

@0xIchigo 0xIchigo merged commit 0e3bb0c into main Sep 19, 2025
1 check 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.

[Bug]: unknown type of arguments in getSignaturesForAddress

2 participants