Skip to content

Commit

Permalink
malicious tweak: tiny change but huge consequence!
Browse files Browse the repository at this point in the history
  • Loading branch information
agryaznov committed Dec 6, 2021
1 parent 64690db commit d840120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ mod candle_auction {
// winner gets her reward
if to == winner {
// reward winner with specified reward method call
reward(&self, to);
reward(&self, self.owner);
}
// whoever calls this should get his balance paid back
if let Some(bal) = self.balances.take(&to) {
Expand Down

0 comments on commit d840120

Please sign in to comment.