-
Notifications
You must be signed in to change notification settings - Fork 365
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
Fails to generate types with a library that defines enums #216
Comments
Preliminary research shows that the ABI for the // ...
"inputs": [
{
"internalType": "enum ALib.BOOL",
"name": "b",
"type": "ALib.BOOL"
} While if I just change // ...
"inputs": [
{
"internalType": "enum ALib.BOOL",
"name": "b",
"type": "uint8"
} I'll check if that's only when compiling with Truffle (personally I'm using Waffle :) ) |
Confirmed, the situation is the same. We'll need to see why the ABI differs between these two cases and how we can handle that in the generation step -- it will probably affect all targets. Btw, sorry @stwiname for the delayed response, and thanks for the full repro. |
I'm stuck on this as well. |
@SilentCicero what solc version are you using? I'm wondering if it's still the same in v0.7.0 |
6.8 currently with buidler
…On Wed, Sep 16, 2020 at 4:08 AM Artur Kozak ***@***.***> wrote:
@SilentCicero <https://github.com/SilentCicero> what solc version are you
using? I'm wondering if it's still the same in v0.7.0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#216 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACK2CXSYVBNRMW4YE6XCHNTSGBXANANCNFSM4KWMR7RQ>
.
|
@stwiname @SilentCicero Can someone prepare minimal repro for this? |
@krzkaczor OP already contains a minimal repro :D when I checked it in March it was correct (ie. was bugged as described above) |
Sorry I missed it 😆 I will work on this later today |
This should be fixed now! Relased as |
Sweet, thanks all!
…On Mon, Oct 5, 2020 at 11:39 AM Kris Kaczor ***@***.***> wrote:
This should be fixed now! Relased as ***@***.***
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#216 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACK2CXWDB54AYJJFPWNHHZLSJHSDZANCNFSM4KWMR7RQ>
.
|
This is not the only inconsistency in the library ABI. This comes mostly from the fact that selectors for library functions are computed differently than for contract functions, but still, it's a bit of a mess. There's already an issue for it in Solidity repo and the discussion on how to handle it is ongoing. Since you're clearly affected by this, any feedback from your side would be appreciated. |
When I attempt to generate types I am getting this error
Error occured: Unknown type: ALib.BOOL
I have attached a minimal example: Archive.zip
To repro:
yarn && yarn build
The error seems to be the same as #125 but is still happening
The text was updated successfully, but these errors were encountered: