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
feat!: improve error on malformed abi
#1347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice if we could catch this before Abigen
. Sometime while we still have the Span
so that we may underline the ABI part of the macro.
We can change the AbigenTarget
to contain the FullAbiProgram
instead of the source.
But maybe for another time. Maybe an issue if you agree? Or a point in the neverending wish list @digorithm ?
I will give it a try int this PR |
abi
abi
packages/fuels-code-gen/src/program_bindings/abigen/abigen_target.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ty for the effort 🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closes: #1343
BREAKING CHANGE:
AbigenTarget
now holds the parsedFullProgramAbi
and the path.AbigenTarget
andAbi
arepub(crate)
Source
is removed in favor ofAbi
Checklist