Last active
January 16, 2023 18:20
-
-
Save fermartz/57e10b66412c5aff05d019cc76ab9902 to your computer and use it in GitHub Desktop.
Motoko Counter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actor { | |
var count : Int = 0; | |
public func increment() : async () { | |
count += 1; | |
}; | |
public query func get_value() : async Int { | |
count; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment