-
Notifications
You must be signed in to change notification settings - Fork 14
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
Remove enum
types from N-API
#721
Comments
@Wodann @agostbiro Can i try this? and can you provide more detail information? I didn't see any difference between |
Thank you for your interest, @iosh! I've added some links to point you in the right direction, but there two more requirements that I'm clarifying with the requester. Once that's done, I'll update the issue description and assign it to you 🙂 |
I think another option is generating non-const enums. |
After discussing this, we realised that the solution was trivial and I implemented it in the above PR. Thank you for your interest, @iosh! Please have a look at some of our other issues for a good first issue 😊 |
Hardhat is using isolatedModules to ensure compatibility with single-file transpilation tools like tsx. With isolatedModules, const enums can’t be inlined, since this setting assumes each file compiles independently rather than together.
Instead of using enums, it would be better to generate constants, similar to what was done for SpecId.
original discussion
Definition of done
Remove all instances of const enum types from the N-API in the
feat/multichain
branchThe text was updated successfully, but these errors were encountered: