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

Add macro to add the contract state version as a custom section #2124

Merged
merged 12 commits into from
Apr 25, 2024

Conversation

aumetra
Copy link
Member

@aumetra aumetra commented Apr 23, 2024

Closes #2116

@aumetra
Copy link
Member Author

aumetra commented Apr 23, 2024

We could also make this part of the logic of entry_point, that way we don't need to pass the same function twice through a proc-macro facility and through syn parsing

Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

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

Nice work. Some questions inline.

packages/derive/src/lib.rs Outdated Show resolved Hide resolved
packages/derive/src/lib.rs Outdated Show resolved Hide resolved
@aumetra aumetra requested a review from chipshort April 24, 2024 13:29
Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

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

LGTM

@aumetra aumetra force-pushed the aw/set-contract-state-version branch from 7c1f5fd to 41632e0 Compare April 24, 2024 14:46
packages/derive/src/lib.rs Outdated Show resolved Hide resolved
packages/derive/src/lib.rs Show resolved Hide resolved
packages/derive/src/lib.rs Show resolved Hide resolved
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Great stuff. Just a CHANGELOG entry missing here

@aumetra aumetra merged commit ab31374 into main Apr 25, 2024
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macro for setting the contract's state version in the compiled binary
3 participants