Skip to content

Commit

Permalink
fixup! promise root is not durable
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jun 20, 2024
1 parent a3539f9 commit 3443a6a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/zoe/tools/fakeVatAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@ function makeFakeVatAdmin(testContextSetter = undefined, makeRemote = x => x) {
// buildRootObject: vp => ns.buildRootObject(vpow, vp, vatBaggage),
// }),
// );
return Promise.resolve(
const rootP = makeRemote(
E(evalContractBundle(zcfBundle)).buildRootObject(
vpow,
vatParameters,
vatBaggage,
),
);
return E.when(rootP, root =>
harden({
root: makeRemote(
E(evalContractBundle(zcfBundle)).buildRootObject(
vpow,
vatParameters,
vatBaggage,
),
),
root,
adminNode: Far('adminNode', {
done: () => {
return exitKit.promise;
Expand Down

0 comments on commit 3443a6a

Please sign in to comment.