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

[Zoe] Ensure offers have the instance handle of the contract instance #910

Merged
merged 1 commit into from
Apr 10, 2020

Conversation

katelynsills
Copy link
Contributor

closes #773

Rather than analyzing the Zoe code for #773 to ensure that contracts cannot use offerHandles associated with other contracts, I chose to add assertions to prove that this is the case for all the contract facet methods which take offerHandles as arguments. I think this is more robust than a one-time analysis.

@katelynsills katelynsills added the Zoe package: Zoe label Apr 10, 2020
@katelynsills katelynsills self-assigned this Apr 10, 2020
Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

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

Agreed. This is both more robust and easy to review for correctness.
LGTM

@katelynsills katelynsills force-pushed the 773-ensure-offers-have-instance-handle branch from 141a4d0 to d8ace9b Compare April 10, 2020 21:53
@katelynsills katelynsills merged commit 0ffe65f into master Apr 10, 2020
@katelynsills katelynsills deleted the 773-ensure-offers-have-instance-handle branch April 10, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Zoe package: Zoe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Zoe] Make sure that contracts cannot use other contract’s offerHandles
3 participants