From 15e3f60482d01b4fb92a0e2b03f5b56c5b8d7e5e Mon Sep 17 00:00:00 2001 From: Lauri Peltonen <20242241+microbecode@users.noreply.github.com> Date: Wed, 9 Jul 2025 17:01:28 +0300 Subject: [PATCH] Fix minor logic errors --- .../writing-a-zkapp/feature-overview/on-chain-values.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/zkapps/writing-a-zkapp/feature-overview/on-chain-values.mdx b/docs/zkapps/writing-a-zkapp/feature-overview/on-chain-values.mdx index c6e859d44..a6dae1474 100644 --- a/docs/zkapps/writing-a-zkapp/feature-overview/on-chain-values.mdx +++ b/docs/zkapps/writing-a-zkapp/feature-overview/on-chain-values.mdx @@ -46,8 +46,8 @@ this.network.timestamp.requireBetween(lower, upper); 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: ```ts -const startDate = UInt64.from(Date.UTC(2022, 9, 1)); -const endDate = UInt64.from(Date.UTC(2022, 10, 1)); +const startDate = UInt64.from(Date.UTC(2024, 9, 1)); +const endDate = UInt64.from(Date.UTC(2024, 10, 1)); class VotingApp extends SmartContract { // ... @@ -112,7 +112,7 @@ this.account.nonce.get(): UInt32; this.account.delegate.get(): PublicKey; // boolean indicating whether an account is new (= didn't exist before the transaction) this.account.isNew.get(): Bool; -// boolean indicating whether all 8 on-chain state fields where last changed by a transaction +// boolean indicating whether all 8 on-chain state fields were last changed by a transaction // authorized by a zkApp proof (as opposed to a signature) this.account.provedState.get(): Bool; // hash receipt which includes all prior transaction to an account