Skip to content

Commit 3e2d09b

Browse files
authored
Merge pull request #1114 from microbecode/patch-1
2 parents a19e7ab + fff1c80 commit 3e2d09b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/zkapps/writing-a-zkapp/feature-overview/on-chain-values.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ this.network.timestamp.requireBetween(lower, upper);
5050
To use the `requireBetween()` method in a voting example, you can allow voting throughout September 2024. Timestamps are represented as a `UInt64` in milliseconds since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). You can use the JS `Date` object to easily convert to this representation. In the simplest case, a zkApp could just hard-code the dates:
5151

5252
```ts
53-
const startDate = UInt64.from(Date.UTC(2022, 9, 1));
54-
const endDate = UInt64.from(Date.UTC(2022, 10, 1));
53+
const startDate = UInt64.from(Date.UTC(2024, 9, 1));
54+
const endDate = UInt64.from(Date.UTC(2024, 10, 1));
5555

5656
class VotingApp extends SmartContract {
5757
// ...
@@ -116,7 +116,7 @@ this.account.nonce.get(): UInt32;
116116
this.account.delegate.get(): PublicKey;
117117
// boolean indicating whether an account is new (= didn't exist before the transaction)
118118
this.account.isNew.get(): Bool;
119-
// boolean indicating whether all 8 on-chain state fields where last changed by a transaction
119+
// boolean indicating whether all 8 on-chain state fields were last changed by a transaction
120120
// authorized by a zkApp proof (as opposed to a signature)
121121
this.account.provedState.get(): Bool;
122122
// hash receipt which includes all prior transaction to an account

0 commit comments

Comments
 (0)