Skip to content

Commit 2fadb5e

Browse files
blperez01bohendo
authored andcommitted
Update README.md
1 parent 4b50704 commit 2fadb5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wrong_constructor_name/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Missing constructor
1+
# Wrong Constructor Name
22

3-
If the constructor of a smart contract is not present (or not spelled the same way as the contract name), it is callable by anyone.
3+
A function intended to be a constructor is named incorrectly, which causes it to end up in the runtime bytecode instead of being a constructor.
44

55
## Attack
66
Anyone can call the function that was supposed to be the constructor.

0 commit comments

Comments
 (0)