Reach Security - check() and API calls #927
-
I'm curious if the following code I've written guarantees that only a specified Buyer can make a purchase from the contract. Is the following logic actually enforced in the smart contract, or does this Reach code set some limitations in the frontend? And if it's set behind the scenes on the frontend, is it possible that someone could create an exploit that bypasses my specified Buyer restriction? Snippet
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This code does not restrict the contract. 'assume' is only for the client. You restrict the contract with 'require' in the consensus step or with the new 'check' option on a call. |
Beta Was this translation helpful? Give feedback.
This code does not restrict the contract. 'assume' is only for the client. You restrict the contract with 'require' in the consensus step or with the new 'check' option on a call.