- The contract has a state variable
counter
that is initialized to0
. - When a user calls the
increment
entrypoint, the contract incrementscounter
by1
. - When a user calls the
decrement
, the contract decrementscounter
by1
.
counter
that is initialized to 0
.increment
entrypoint, the contract increments counter
by 1
.decrement
, the contract decrements counter
by 1
.