-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some initial text to avoiding common mistakes
- Loading branch information
1 parent
54922d6
commit e71a532
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Avoiding Common Mistakes | ||
I took some simple steps to make sure I avoid common mistakes when it comes to the security of my MediaGallery contract. | ||
|
||
The sections below describes the steps taken to mitigate against potential contract vulnerabilities. | ||
|
||
## 1. Logic Bugs | ||
Simple programming mistakes can cause the contract to behave differently to its stated rules, especially on 'edge cases'. | ||
|
||
I have mitigated against this risk by: | ||
|
||
* Following Solidity coding standards and general coding best practices for safety-critical software. | ||
* Avoiding overly complex rules (even at the cost of some functionality) or complicated implementation (even at the cost of some gas). | ||
|
||
Note that I have chosen not to include a mechanism for fixing bugs during the life of the contract due to concern that this mechanism would itself be a serious vulnerability. |