-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Reuse same type parsing for defaultAbiCoder.encode as in utils.Interface #360
Comments
I think this is because I don’t handle newline as whitespace... I can look into it. I can probably just replace |
Oh. Looking at the above code again, you are using In the first example it works in the first case because you are constructing a function named I have confirmed the issue you are experiencing is the newlines. For now, if you use |
Ah, makes sense, thanks @ricmoo. It remains to be the case that it works for this, too: new ethers.utils.Interface([`foobar(${ENCODING})`]).encode({ foo, bar }); |
You should be able to safely use newline (or any other whitespace) now in the human-readable ABI, in version Thanks! :) |
If I have
Then the following will work:
However the following will error:
Like so:
I think it is because different parsing logic is used? @ricmoo
The text was updated successfully, but these errors were encountered: