-
Notifications
You must be signed in to change notification settings - Fork 1
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
Launchpad v2 audit fixes #84
Conversation
fn check_caller_owner_or_user(&self) { | ||
if self.blockchain().get_owner_address() == self.blockchain().get_caller() { | ||
return; | ||
} | ||
|
||
self.blockchain().check_caller_is_user_account(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't respect the doc, i.e. or an account from another shard
, you just check the caller is a user account.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, this was not what was requested, but it is a more simpler and clear/cleaner solution. which covers the initial request. No need for external SCs to call this function.
Coverage SummaryTotals
FilesExpand
|
framework upgrade 0.54.1
…arameters launchpad v2 addTickets new parameter types
…tests Audit fixes unit tests
No description provided.