Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Missing comment
  • Loading branch information
Michal Handzlik committed Aug 17, 2022
commit eee093d7c914859cbf8d2e3d557173a020fd5a51
3 changes: 3 additions & 0 deletions contracts/button/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ mod button_game {
})
}

/// Presses the button
///
/// If called on alive button, instantaneously mints reward tokens to the caller
#[ink(message)]
pub fn press(&mut self) -> ButtonResult<()> {
if self.is_dead() {
Expand Down