Skip to content
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(abigen): add resolver error factories in generated wrappers via companion object init #41

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

ArtificialPB
Copy link
Member

Description

If contract abi has only one custom error, the generated code would produce compilation error.

Solution

Moved registration of generated errors to companion object "init" block.

closes #40

@ArtificialPB
Copy link
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@ArtificialPB ArtificialPB merged commit 5b3cc99 into master Dec 21, 2023
1 check passed
@ArtificialPB ArtificialPB deleted the fix/error-abigen branch December 21, 2023 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile error of generated smart contract wrapper
1 participant