3 ms·
Holy crap you're right. This is like in Java, where you mean to override a method in a superclass but mis-spell the name of the method and therefore instead en
by KirillPanov 6y ago
Holy crap you're right.
This is like in Java, where you mean to override a method in a superclass but mis-spell the name of the method and therefore instead end up simply adding a new method with the mis-spelled name.
I guess either Solidity doesn't have something like Java 1.5+'s @Override, or else it just wasn't used.
In any case it's hard to believe this was accidental. Of all the places you could make this mistake, most of the others wouldn't result in a massive exploit like this.
- hulahoof 6y agoI don't think anyone would consider an accident possible after they stole the funds.
- KirillPanov 6y agoWell there have been other accidental bugs (reentrancy, for one) that got exploited by thieves who turned out not to be the devs. But I agree, that's not what happened here.