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: move machine hash logic to osp #172

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Conversation

gzeoneth
Copy link
Member

This PR move getStartMachineHash and getEndMachineHash from ChallengeLib to OneStepProofEntry, this change would make the ChallengeManager not compatible with previously deployed OSP.

@cla-bot cla-bot bot added the s label Apr 24, 2024
@gzeoneth gzeoneth changed the title Refactor machine hash refactor: move machine hash logic to osp Apr 24, 2024
ValueArray memory valuesArray = ValueArray({inner: startingValues});
ValueStack memory values = ValueStack({proved: valuesArray, remainingHash: 0});
ValueStack memory internalStack;
StackFrameWindow memory frameStack;

Check warning

Code scanning / Slither

Uninitialized local variables Medium

startingValues[2] = ValueLib.newI32(0);
ValueArray memory valuesArray = ValueArray({inner: startingValues});
ValueStack memory values = ValueStack({proved: valuesArray, remainingHash: 0});
ValueStack memory internalStack;

Check warning

Code scanning / Slither

Uninitialized local variables Medium

@gzeoneth gzeoneth mentioned this pull request Apr 24, 2024
@gzeoneth gzeoneth requested a review from gvladika April 24, 2024 16:52
Copy link
Contributor

@gvladika gvladika left a comment

Choose a reason for hiding this comment

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

lgtm

@gzeoneth gzeoneth merged commit 89f7655 into develop Apr 30, 2024
9 of 11 checks passed
@gzeoneth gzeoneth deleted the refactor-machine-hash branch April 30, 2024 16:31
@hkalodner hkalodner restored the refactor-machine-hash branch June 14, 2024 04:24
@gzeoneth gzeoneth mentioned this pull request Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants