agent-backend/contracts/CounterExample/CounterExample.yjs

14 lines
234 B
Plaintext
Raw Permalink Normal View History

2021-09-26 04:49:24 +00:00
contract CounterExample {
function onCreate() {
Global.count = 0;
}
export function click(ignored) {
Global.count++;
return Global.count;
}
export function getCount(ignored) {
return Global.count;
}
}