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

Split out DeclaredSizeForMetering from MeteredClone and use it for Compare #714

Merged
merged 4 commits into from
Mar 14, 2023

Conversation

jayz22
Copy link
Contributor

@jayz22 jayz22 commented Feb 28, 2023

What

Resolves #605.
It splits out the DeclaredSizeForMetering from MeteredClone (previously defined as MeteredClone::ELT_SIZE) out of metered clone and share it between clone and comparison.
Adapt to the object overahaul, which introduced many new types. Declared all the RawVal-wrapping types to be fixed size.
Fix try_compare_to_small to use metered compare.

Why

[TODO: Why this change is being made. Include any context required to understand the why.]

Known limitations

[TODO or N/A]

@jayz22 jayz22 changed the title (Not working) Split fixed sized type and share between clone and cmp Split out DeclaredSizeForMetering from MeteredClone and use it for Compare Mar 2, 2023
@jayz22 jayz22 marked this pull request as ready for review March 2, 2023 03:02
@jayz22 jayz22 requested review from graydon and sisuresh as code owners March 2, 2023 03:02
@jayz22 jayz22 requested a review from a team as a code owner March 10, 2023 17:37
Copy link
Contributor

@graydon graydon left a comment

Choose a reason for hiding this comment

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

Looks pretty good! handful of nits

@graydon graydon enabled auto-merge (squash) March 14, 2023 19:01
@graydon graydon merged commit 756070e into stellar:main Mar 14, 2023
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.

Charge comparison of FixedSizeOrdType an amount corresponding to its type.
2 participants