Skip to content

Commit c529166

Browse files
authored
add score (#645)
1 parent 2a952b0 commit c529166

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contracts/button/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ mod button_game {
4747
#[ink(topic)]
4848
by: AccountId,
4949
when: BlockNumber,
50+
score: Balance,
5051
}
5152

5253
/// Event emitted when the finished game is reset and pressiah is rewarded
@@ -215,6 +216,7 @@ mod button_game {
215216
Event::ButtonPressed(ButtonPressed {
216217
by: caller,
217218
when: now,
219+
score,
218220
}),
219221
);
220222

0 commit comments

Comments
 (0)