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

Improve memoization code organization in purchase sequence #441

Merged
merged 4 commits into from
Jan 12, 2023

Conversation

ryley-o
Copy link
Contributor

@ryley-o ryley-o commented Jan 10, 2023

Implement some additional code-review refactoring thanks to feedback from Opcodes in DA w/Settlement minter.

This very slightly decreases average mint gas costs. The reduction is due to a change away from safe-casting receipt.netPosted and receipt.numPurchased, and instead relying on how they are being used to ensure overflow will not occur while casting to shortened uint types.

@ryley-o ryley-o self-assigned this Jan 10, 2023
@ryley-o ryley-o marked this pull request as ready for review January 10, 2023 20:59
@ryley-o ryley-o requested a review from a team as a code owner January 10, 2023 20:59
@ryley-o ryley-o removed the request for review from jakerockland January 10, 2023 21:01
@ryley-o ryley-o marked this pull request as draft January 10, 2023 21:01
auto-merge was automatically disabled January 10, 2023 21:01

Pull request was converted to draft

@ryley-o ryley-o marked this pull request as ready for review January 10, 2023 23:51
Copy link
Contributor

@jakerockland jakerockland left a comment

Choose a reason for hiding this comment

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

This LGTM ser–thank you!

@jakerockland jakerockland merged commit 05f600a into main Jan 12, 2023
@jakerockland jakerockland deleted the improve-DA-settlement-memoization branch January 12, 2023 17:11
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