From dc3e9c1eb3d515c78522df29199c15c57206eb79 Mon Sep 17 00:00:00 2001 From: filip Date: Fri, 7 Oct 2022 14:56:12 +0200 Subject: [PATCH] add score --- contracts/button/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contracts/button/lib.rs b/contracts/button/lib.rs index 9f9ed18a07..ee1369cb1d 100644 --- a/contracts/button/lib.rs +++ b/contracts/button/lib.rs @@ -47,6 +47,7 @@ mod button_game { #[ink(topic)] by: AccountId, when: BlockNumber, + score: Balance, } /// Event emitted when the finished game is reset and pressiah is rewarded @@ -215,6 +216,7 @@ mod button_game { Event::ButtonPressed(ButtonPressed { by: caller, when: now, + score, }), );