Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Review security warnings messages and capture them in docs #362

Merged
merged 2 commits into from
Oct 26, 2018

Conversation

spalladino
Copy link
Contributor

Updates all validation messages from ValidationLogger to simplify them
and add links to documentation. Add to writing contracts doc info on any
validations missing.

Fixes #248

Updates all validation messages from ValidationLogger to simplify them
and add links to documentation. Add to writing contracts doc info on any
validations missing.

Fixes #248
@facuspagnuolo facuspagnuolo self-assigned this Oct 25, 2018
Copy link
Contributor

@facuspagnuolo facuspagnuolo left a comment

Choose a reason for hiding this comment

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

LGTM but I let Leo review wording

@facuspagnuolo facuspagnuolo added the kind:documentation Write or review documentation content label Oct 25, 2018
Copy link
Contributor

@come-maiz come-maiz left a comment

Choose a reason for hiding this comment

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

+1, with a tiny typo to fix. Thanks!


There is, however, an exception. If the direct call to the logic contract triggers a `selfdestruct` operation, then the logic contract will be destroyed, and all your contract instances will end up delegating all calls to an address without any code. This would effectively break all contract instances in your project.

A similar effect can be achieved is the logic contract contains a `delegatecall` operation. If the contract can be made to `delegatecall` into a malicious contract that contains a `selfdestruct`, then the calling contract will be destroyed.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/is/if

@spalladino spalladino merged commit 70b68cf into master Oct 26, 2018
@spalladino spalladino deleted the fix/validation-error-msgs-#248 branch October 26, 2018 09:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind:documentation Write or review documentation content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants