Skip to content
Prev Previous commit
Next Next commit
Remove from incrementer
  • Loading branch information
athei committed Jul 2, 2023
commit 41bc13328c0612a2f95df4e3ca764aa1c61c31de
2 changes: 1 addition & 1 deletion integration-tests/incrementer/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mod incrementer {

#[ink(message)]
pub fn inc(&mut self, by: i32) {
self.value += by;
self.value = self.value.checked_add(by).unwrap();
}

#[ink(message)]
Expand Down