o1js icon indicating copy to clipboard operation
o1js copied to clipboard

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

Open dfstio opened this issue 10 months ago • 0 comments

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

dfstio avatar Apr 10 '24 15:04 dfstio