-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
abigen produces invalid go-code, redeclares structs #20282
Labels
Comments
It even persists with |
@MariusVanDerWijden Can you please share some code snippets so that we can reproduce?
Do you mean?
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey guys,
I'm currently running into a bug while generating go-bindings out of our smart contracts.
Our current setup of the contract is the following:
contract X contains the definition of struct2
contract A includes contract B
contract B includes contract X
contract A includes contract X
both A and B use struct2 as function parameters for public + external functions.
If I generate the go bindings for A like this
go:generate abigen --pkg a --sol A.sol --out ../a/a.go
Abigen generates some structs twice. e.g.
The issue still persists with
1.9.7-stable-a718daa6
The text was updated successfully, but these errors were encountered: