Skip to content

Commit

Permalink
update @State counter
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Oct 11, 2021
1 parent 38d3750 commit 7466fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/state.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ The following is an example contract that records the number of times ``mutate()
@state
int counter;
constructor() {
this.counter = 0;
constructor(int counter) {
this.counter = counter;
}
public function mutate(SigHashPreimage txPreimage, int amount) {
Expand Down

0 comments on commit 7466fa9

Please sign in to comment.