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

docs: add the onlyBuyer modifier in function confirmPurchase() #14632

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

DestinyWei
Copy link
Contributor

in the function confirmPurchase(), the annotation said 'Confirm the purchase as buyer.' but it doesn't add the onlyBuyer modifier

in the function confirmPurchase(), the annotation said 'Confirm the purchase as buyer.' but it doesn't add the `onlyBuyer` modifier
@github-actions
Copy link

Thank you for your contribution to the Solidity compiler! A team member will follow up shortly.

If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother.

If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix.

@mehtavishwa30 mehtavishwa30 merged commit 3b532e4 into ethereum:develop Aug 19, 2024
66 checks passed
@@ -106,6 +106,7 @@ you can use state machine-like constructs inside a contract.
/// is called.
function confirmPurchase()
external
onlyBuyer
Copy link
Member

Choose a reason for hiding this comment

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

It's only confirmPurchase here that sets buyer in the first place (see the second line in the body), so this change is invalid: after the change it'd be impossible to confirm a purchase.

mehtavishwa30 added a commit that referenced this pull request Aug 19, 2024
Reverts the docs PR #14632. (see: #14632 (comment))
@ekpyron ekpyron added this to the 0.8.27 milestone Aug 19, 2024
clonker pushed a commit that referenced this pull request Aug 28, 2024
aarlt pushed a commit that referenced this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants