Skip to content

Commit

Permalink
Further testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Dec 2, 2023
1 parent 1d6098a commit cb60b07
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,21 @@ export const upgradeWalletFactory = async (
makeStorageNodeChild(chainStorage, WALLET_STORAGE_PATH_SEGMENT),
provisionPoolStartResult,
]);
const walletReviver = await E(ppFacets.creatorFacet).getWalletReviver();

const privateArgs = {
storageNode: walletStorageNode,
walletBridgeManager,
walletReviver: E(ppFacets.creatorFacet).getWalletReviver(),
walletReviver,
};

const { adminFacet } = await walletFactoryStartResult;

await E(adminFacet).upgradeContract(walletRef.bundleID, privateArgs);

console.log(`upgrade WF BEFORE`);
// XXX this console.log doesn't print. Any added above will. Seems strange.
// console.log(`upgrade WF AFTER`);
console.log(`upgrade WF AFTER`);
};

export const getManifestForUpgradeWallet = (_powers, { walletRef }) => ({
Expand Down

0 comments on commit cb60b07

Please sign in to comment.