We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6797b commit 86e38e4Copy full SHA for 86e38e4
content/md/en/docs/tutorials/smart-contracts/use-maps-for-storing-values.md
@@ -250,7 +250,7 @@ To add insert and remove functions to the contract:
250
251
```rust
252
#[ink(message)]
253
- pub fn inc_mine(&mut self, by: i32) {
+ pub fn inc_mine(&mut self, by: u32) {
254
let caller = self.env().caller();
255
let my_value = self.get_mine();
256
self.my_map.insert(caller, &(my_value + by));
0 commit comments