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), }); }