Skip to content

Commit

Permalink
Merge pull request #6520 from Agoric/1254-runtime-changes
Browse files Browse the repository at this point in the history
1254 runtime changes
  • Loading branch information
mergify[bot] authored Nov 2, 2022
2 parents 7818d2d + 7b354df commit 559d03e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions packages/inter-protocol/src/proposals/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ export const makeInstallCache = async (
};

const wrapInstall = install => async (mPath, bPath, opts) => {
// @ts-expect-error https://github.com/Agoric/agoric-sdk/pull/6520/
const { endoZipBase64Sha512: sha512 } = await loadBundle(bPath).then(
m => m.default,
const bundle = await loadBundle(bPath).then(m => m.default);
assert(
'endoZipBase64Sha512' in bundle,
'bundle must be EndoZipBase64Bundle',
);
const { endoZipBase64Sha512: sha512 } = bundle;
const detail = await provideWhen(working, sha512, () =>
install(mPath, bPath, opts).then(installation => ({
installation,
Expand Down
3 changes: 1 addition & 2 deletions packages/vats/src/vat-provisioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ export function buildRootObject() {
// Update the notifier when the chainBundle resolves.
const { notifier, updater } = makeNotifierKit();
chainBundle.then(clientHome => {
// @ts-expect-error https://github.com/Agoric/agoric-sdk/pull/6520/
updater(harden({ clientHome, clientAddress: address }));
updater.updateState(harden({ clientHome, clientAddress: address }));
});
return Far('emulatedClientFacet', {
getChainBundle: () => chainBundle,
Expand Down

0 comments on commit 559d03e

Please sign in to comment.