Skip to content

Syncing account sizes between c and rust #197

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

Merged
merged 6 commits into from
Jul 21, 2022

Conversation

majabbour
Copy link
Contributor

While our C code does not need to directly interact with SMA trackers/ other rust objects. They need to know their sizes to check that the account is rent free, and to anticipate the right account size in pythd.

In this PR, I define the size as a constant in oracle.h, and I add a unit test in Rust that checks that the size is correct (to make sure that the dockerimage does not build if the size is not correct).

@majabbour majabbour requested a review from guibescos July 21, 2022 17:52
tompntn
tompntn previously approved these changes Jul 21, 2022
majabbour and others added 2 commits July 21, 2022 15:14
@majabbour majabbour merged commit 9b3a9ce into main Jul 21, 2022
@majabbour majabbour deleted the syncing-account-sizes-between-C-and-rust branch July 21, 2022 20:42
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.

2 participants