o1-labs / o1js

TypeScript framework for zk-SNARKs and zkApps

Home Page:https://docs.minaprotocol.com/en/zkapps/how-to-write-a-zkapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change contextConflictMessage to reflect the fact that is being thrown when SmartContract method is being called without 'await'

dfstio opened this issue · comments

commented

The following error is being thrown when calling SmartContract method without await:

Error: It seems you're running multiple provers concurrently within the same JavaScript thread, which, at the moment, is not supported and would lead to bugs.

Proposal: change the wording to reflect the fact that this error may mean that await should be used to call SmartContract methods

https://github.com/o1-labs/o1js/blob/main/src/lib/util/global-context.ts#L106