Skip to content

Commit

Permalink
Merge pull request #297 from SmartContractSecurity/chaals-patch-2
Browse files Browse the repository at this point in the history
Update SWC-119.md
  • Loading branch information
dmuhs authored Jul 2, 2024
2 parents a8befc2 + 4783faa commit 66195ea
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
16 changes: 16 additions & 0 deletions entries/docs/SWC-118.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Please note, this content is no longer actively maintained.

The content of the SWC registry has not been thoroughly updated since 2020. It is known to be incomplete and may contain errors as well as crucial omissions.

For currently maintained guidance on known Smart Contract vulnerabilities written primarily as guidance for security reviewers, please see the
[EEA EthTrust Security Levels specification](https://entethalliance.org/specs/ethtrust-sl). As well as the latest release version, an
[Editor's draft](https://entethalliance.github.io/eta-registry/security-levels-spec.html) is available, that represents the latest work of the group developing the specification.

General guidance for developers on what to consider to ensure security, that is currently maintained, is also available through the
[Smart Contract Security Verification Standard (SCSVS)](https://github.com/ComposableSecurity/SCSVS).

# Title

Incorrect Constructor Name
Expand All @@ -19,6 +30,11 @@ Solidity version 0.4.22 introduces a new `constructor` keyword that make a const

- [SigmaPrime - Constructors with Care](https://blog.sigmaprime.io/solidity-security.html#constructors)

### EEA EthTrust Security Levels Specification

- [**[S] Use a Modern Compiler**](https://entethalliance.org/specs/ethtrust-sl/#req-1-compiler-060)
- [**[Q] Code Linting**](https://entethalliance.org/specs/ethtrust-sl/#req-3-linted)

## Samples

### incorrect_constructor_name1.sol
Expand Down
16 changes: 15 additions & 1 deletion entries/docs/SWC-119.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# Title
# Please note, this content is no longer actively maintained.

The content of the SWC registry has not been thoroughly updated since 2020. It is known to be incomplete and may contain errors as well as crucial omissions.

For currently maintained guidance on known Smart Contract vulnerabilities written primarily as guidance for security reviewers, please see the
[EEA EthTrust Security Levels specification](https://entethalliance.org/specs/ethtrust-sl). As well as the latest release version, an
[Editor's draft](https://entethalliance.github.io/eta-registry/security-levels-spec.html) is available,
that represents the latest work of the group developing the specification.

General guidance for developers on what to consider to ensure security, that is currently maintained, is also available through the
[Smart Contract Security Verification Standard (SCSVS)](https://github.com/ComposableSecurity/SCSVS).# Title

Shadowing State Variables

Expand All @@ -21,6 +31,10 @@ Review storage variable layouts for your contract systems carefully and remove a
- [Issue on Solidity's Github - Shadowing of inherited state variables should be an error (override keyword)](https://github.com/ethereum/solidity/issues/2563)
- [Issue on Solidity's Github - Warn about shadowing state variables](https://github.com/ethereum/solidity/issues/973)

### EEA EthTrust Security Levels Specification

- [**[Q] Implement as Documented**](https://entethalliance.org/specs/ethtrust-sl/#req-3-implement-as-documented)

## Samples

### ShadowingInFunctions.sol
Expand Down

0 comments on commit 66195ea

Please sign in to comment.