Skip to content

Commit

Permalink
Merge pull request #754 from o1-labs/fix/state-get
Browse files Browse the repository at this point in the history
Fix error on zkapp.state.get()
  • Loading branch information
mitschabaude committed Feb 27, 2023
2 parents e10a273 + 9c44b9c commit 520f793
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "snarkyjs",
"description": "JavaScript bindings for SnarkyJS",
"version": "0.9.0",
"version": "0.9.1",
"license": "Apache-2.0",
"type": "module",
"main": "./dist/web/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function createState<T>(): InternalStateType<T> {
});

let state = this._contract.stateType.fromFields(stateAsFields);
this._contract.stateType.check?.(state);
if (inCheckedComputation()) this._contract.stateType.check?.(state);
this._contract.wasRead = true;
this._contract.cachedVariable = state;
return state;
Expand Down

0 comments on commit 520f793

Please sign in to comment.