Skip to content

Commit

Permalink
fix: fix ZCF to not await in first crank
Browse files Browse the repository at this point in the history
This fix is cherry-picked from #8911 for upgrade 15
  • Loading branch information
Chris-Hibbert committed Apr 18, 2024
1 parent 92ce02b commit 34ce82d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/zoe/src/contractFacet/zcfZygote.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,12 @@ export const makeZCFZygote = async (

await null;
if (!zcfBaggage.has('repairedContractCompletionWatcher')) {
await E(zoeInstanceAdmin).repairContractCompletionWatcher();
console.log(`Repaired contract completion watcher`);
// We don't wait because it's a cross-vat call (to Zoe) that can't be
// completed during this vat's start-up
E(zoeInstanceAdmin)
.repairContractCompletionWatcher()
.catch(() => {});

zcfBaggage.init('repairedContractCompletionWatcher', true);
}

Expand Down

0 comments on commit 34ce82d

Please sign in to comment.