Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Oct 11, 2021
1 parent 7466fa9 commit 1289699
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 @@ -22,7 +22,7 @@ The state property can be used the same way as a regular property.
}
}
Propogate the State
Propagate the State
======================
A contract can keep state across chained transactions by storing it in the locking script.
In the following example, a contract goes from ``state0`` to ``state1``, and then to ``state2``.
Expand Down Expand Up @@ -50,7 +50,7 @@ The following is an example contract that records the number of times ``mutate()
this.counter = counter;
}
public function mutate(SigHashPreimage txPreimage, int amount) {
public function increment(SigHashPreimage txPreimage, int amount) {
require(Tx.checkPreimage(txPreimage));
// mutate state
Expand Down

0 comments on commit 1289699

Please sign in to comment.