-
Notifications
You must be signed in to change notification settings - Fork 322
Fix seth sig #818
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
Fix seth sig #818
Conversation
Ah good catch with the 4byte fuzzing to handle string types too. Everything seems to work as expected 👌 One UX comment is that it'd be nice to be able to do |
looks like we also need to handle tuples... 😬 https://github.com/dapphub/dapptools/runs/3830742936#step:5:1252 |
Running into the same issue with tuples as here: ethers.js expects tuple types to be prefixed with Not sure how to proceed here. @mds1 what was the motivation for changing the implementation of |
The original motiviation for changing If we do revert to that implementation, we probably should just document that you need to pass it the already-normalized function signature, and it wont do the normalization for you. Regarding the |
Even if we update to a new ethers, I think we will have to extend the abi parser in hevm to support tuple types (here). I'm hitting this with
|
Ah, interesting! As a user I would definitely prefer if hevm supported tuples, as that seems like a pretty important feature. Especially now that ABI Encoder V2 is enabled by default so it's simpler/safer to use tuple inputs than it was with older solc versions |
I think I'm going to merge this as is, as it already fixes quite a few issues with the current |
@d-xo Yep that seems reasonable to me! |
Co-authored-by: Matt <matt@mattsolomon.dev>
Description
bytesX
types inhevm abiencode
seth sig
seth sig
against 4byte.directoryFixes #817
Checklist