You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe wagmi/cli is well positioned to fill this white space because technically enums are mapped to uint8 in solidity you lose the name. Luckily those values are preserved in the artifacts json.
This is an example of what an enum definition looks like in the artifacts
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I believe wagmi/cli is well positioned to fill this white space because technically enums are mapped to uint8 in solidity you lose the name. Luckily those values are preserved in the artifacts json.
This is an example of what an enum definition looks like in the artifacts
This file is neatly displayed in foundry artifacts out and the info can be found in the build-info for hardhat.
I was imagining the wagmi config would need specific settings for hardhat / foundry
example:
This would generate a typescript enum corresponding the artifacts in the generated.ts
Beta Was this translation helpful? Give feedback.
All reactions