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

refactor: use attr sig info in abi generator #1036

Merged
merged 7 commits into from
Jun 29, 2023

Conversation

agostbiro
Copy link
Contributor

This PR continues where #1033 left off.

The PR first adds test coverage for the abi generator in 338c0b1 (fixes #1031). The tests don't cover all combinations, but they should cover all features.

In the second step, the PR refactors the abi generator to use the new AttrSigInfo struct introduced in #1025 (fixes #1032).

Finally, the PR cleans up the code that was necessary to support two versions of the AttrSigInfo struct while the refactoring was in progress.

@agostbiro
Copy link
Contributor Author

Buildkite failed with an "Address already in use" error for an integration test. Should be fine if reran.

Copy link
Collaborator

@frol frol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agostbiro Thanks for this thorough work you put in here!

near-sdk-macros/src/core_impl/abi/abi_generator.rs Outdated Show resolved Hide resolved
@frol frol merged commit 6887b41 into near:master Jun 29, 2023
13 checks passed
@agostbiro agostbiro deleted the abi-generation-refactoring branch June 29, 2023 15:12
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.

Refactor ABI generator to use AttrSigInfoV2 Add test coverage for ABI generator
2 participants