From b79d2e715b32407b70c4e5c518cd2279abb80014 Mon Sep 17 00:00:00 2001 From: zkShigoto <113286510+Shigoto-dev19@users.noreply.github.com> Date: Sun, 28 Jul 2024 09:30:47 +0100 Subject: [PATCH] Update offchain-storage.mdx Fix typo: Line 156 `from: fromOption` --> `from: playerOption` --- .../writing-a-zkapp/feature-overview/offchain-storage.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zkapps/writing-a-zkapp/feature-overview/offchain-storage.mdx b/docs/zkapps/writing-a-zkapp/feature-overview/offchain-storage.mdx index 40b1a716b..f046e1a9a 100644 --- a/docs/zkapps/writing-a-zkapp/feature-overview/offchain-storage.mdx +++ b/docs/zkapps/writing-a-zkapp/feature-overview/offchain-storage.mdx @@ -153,7 +153,7 @@ class MyContract extends SmartContract { // increment the player's score, set a precondition on the previous score offchainState.fields.players.update(playerA, { - from: fromOption, + from: playerOption, to: score.add(1), }); }