|
|
|
|
|
by hexhex
3250 days ago
|
|
I didn't have high expectations for Solidity considering the recent vulnerabilities, but even these were disappointed. If some guy writes this kind of code at home, alright, but this as the alleged foundation for our future financial system? Frightening. Just one example:
"Our function EndLottery() must be only accessible by the owner of the lottery." [0] function EndLottery() public {
if (msg.sender == owner) {
...
}
} What about code guards? Not to speak of decent typing, etc. etc. [0] https://ethereumdev.io/managing-multiple-users-a-simple-lott... |
|
And then they succeeded at failing.