#Atomics.wait cannot be called in this context

2 messages · Page 1 of 1 (latest)

plucky oracle
#

I am getting this error when I try to compile the zkApp in the UI.

    let zkProgram = (await import('game_of_life')).zkProgram;
    let contract = (await import('game_of_life')).contract;
    await zkProgram.compile(); // throws error
    await contract.compile();
    . . .

How to resolve this?

plucky oracle
#

I think it's an issue with versions
I upgraded snarkyjs to 0.12.1
and now I am getting a different error

1. We can't find this zkapp account in the ledger
2. Because the zkapp account was not found in the cache. Try calling `await fetchAccount(zkappAddress)` first.
If none of these are the case, then please reach out on Discord at #zkapp-developers and/or open an issue to tell us!

adding await fetchAccount(zkappAddress) does not help